O'Reilly Forums: Shortcuts - O'Reilly Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Shortcuts

#1 User is offline   thillerson 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 109
  • Joined: 06-August 09

Posted 14 February 2010 - 12:19 PM

Let's have a discussion about keyboard shortcuts. I know Eclipse, so I will put some of the ones I use all the time. If you are using a different editor, let us know about anything you find. You can ask questions about key commands here too.

I'm on a Mac and can't easily check Windows or Linux key commands, but in general if I say Command that translates to Alt on Windows/Linux, in my experience. If anyone wants to check into Window/Linux versions for any of the commands I put here, that would be appreciated.

Also, there are a few references for shortcuts out there - enjoy this link: http://lmgtfy.com/?q=eclipse%20shortcuts
0

#2 User is offline   thillerson 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 109
  • Joined: 06-August 09

Posted 14 February 2010 - 12:38 PM

Shortcuts used in the Overview class:

CTRL-Space (all platforms) - Content Assist
Autocompletes classes or variables Eclipse knows about, providing a menu if there are more than one matching item. Automatically inserts any imports if the item is a class.

Command-Shift-R (Mac)/Control-Shift-R ???? (Windows/Linux) - Open Resource
Provides a dialogue box which will search as you type for any files in the project.

Command-Shift-T (Mac)/Control-Shift-T ???? (Windows/Linux) - Open Type
Provides a dialogue box which will search as you type for any Java types, i.e. classes, interfaces, enums known to Eclipse. Will search beyond the current workspace into system classes (useful if you have source code attached.
0

#3 User is offline   PAHill 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 17-February 10

Posted 17 February 2010 - 02:12 PM

Not a shortcut, but an IDE feature, darn useful to show everyone and something that would have helped those just getting up to speed on Eclipse is "Generate Setters and Getters". Instead of pasting fields, setters and getters and an interesting routine all at the same, take a teeny bit more time and ...

1. Discuss the class fields we'll be using (did this anyway) and type (or paste) the set of fields.

2. Use generate setters and getters
"source | generate Getters and Setters ..."

3. Paste the interesting routine while discussing its usefulness.

Those typing can catch up as you mention the details of the pasted 'real' routine using the features just shown.

Despite the class being a lecture, some folks will always try to type along, so you might as well
take it in a few more small steps and remind or show a useful IDE feature.

Just my 2 cents.





0

#4 User is offline   thillerson 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 109
  • Joined: 06-August 09

Posted 17 February 2010 - 08:58 PM

PAHill good catch. I absolutely should have shown that shortcut because I use it all the time. I'll see if I can use it in a future class where we need a getter/setter combo.
0

#5 User is offline   applejay 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 49
  • Joined: 17-February 10

Posted 18 February 2010 - 09:06 PM

great tip PAHill, a lazy programmer technique worth using = )
0

#6 User is offline   thillerson 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 109
  • Joined: 06-August 09

Posted 19 February 2010 - 08:30 PM

QUOTE (applejay @ Feb 18 2010, 10:06 PM) <{POST_SNAPBACK}>
great tip PAHill, a lazy programmer technique worth using = )


Laziness is one of Larry Wall's Programmer Virtues! http://c2.com/cgi/wiki?LazinessImpatienceHubris

Definitely take advantage of any time an IDE can help you cut through Java's verbosity smile.gif
0

#7 User is offline   PAHill 

  • New Member
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: 17-February 10

Posted 24 February 2010 - 09:12 AM

OK here are a couple of more useful Eclipsisms

Source | generate Setters Getters

Personally I have rarely used the drop down hint to correct a warning Generate Setters and Getters... , I much more often use the Source | Generate Setters/Getters...
in the menus.

Tony mentioned this one, but only after showing the completion hint several times, so I wanted to draw attention to the tool/wizard variation instead of just following warnings and correcting them.


Move Lines: CTRL-Up and CTRL-Down

Tony seemed to be a fan of cut and paste which is certainly what we all do, but there is another useful Eclipse set of keys.

When you just didn't bother to answer the question where to insert some code in some wizard (I know I often don't), or you find you need to move a block of code. Try
1. select the block of code
2. Use CTRL-UpArrow and CTRL-DownArrow to move it.

I never use drag and drop of text, but I use this move up and move down feature all the time.

Interestingly, it even re-indents for you (assuming you've set what you want in your preferences).

HTH,
-Paul







0

#8 User is offline   thillerson 

  • Active Member
  • PipPipPipPip
  • Group: O'Reilly Author
  • Posts: 109
  • Joined: 06-August 09

Posted 25 February 2010 - 09:01 PM

Yea, I still don't use drag and drop either. It's too touchy. I remember when I first started using Eclipse, I was mad that it didn't have drag and drop text, but since then I've learned not to use that mouse thing and learn to love the Keyboard. It may come as no surprise that when I'm not using Eclipse I prefer Emacs smile.gif
0

#9 User is offline   ouick 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 17-August 11
  • Gender:Male

Posted 17 August 2011 - 11:52 PM

:rolleyes: :rolleyes:
0

#10 User is offline   maintainie 

  • New Member
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: 02-August 11

Posted 29 August 2011 - 06:10 PM

I totally agree with your points. The steps of listing in the posts are quite useful for getting this problems resolved.
[url="http://www.driverchecker.com/"]drive update[/url]
0

#11 User is offline   Etienne11 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 14-October 11

Posted 05 December 2011 - 05:36 AM

hi,
Features
Produce Computer keyboard Cutting corners with regard to multiple command and chat messages
One Quick way can consist of multiple secrets
1 Shortcut may summon several chat messages and commands
Utilizes Spout and Spoutcraft
Utilizes NarrowtuxLib as addiction
Just about all dependencies are instantly downloaded.
Bukkit Authorizations support
You can revise the quick way. Which even consists of environment a brand new quick way for that included measures.
Utilization
Add a shortcut
Type /sh add
a nice assistant can have upward!
Press the actual shortcut you need to make use of. It'll be shown.
Type in multiple chat communications and instructions.
Kind !completed to finish set up
Whenever you don't want to create a shortcut, kind !cancel
Eliminate the quick way
Kind /sh remove
Push the actual shortcut you want to remove
Checklist your cutting corners
Type /sh list
Update the shortcut
Kind /sh update
Press the quick way you want to revise
The same assistant which also produces cutting corners comes up.
Remove products using the !eliminate order
Add things like you're used to
Alter the quick way by simply pushing a replacement.
Type !carried out
[url="http://www.styleguru.com/vintage-leather-jackets-7.html"]Vintage Leather Jackets[/url]
[url="http://www.bornrich.com/cxc-motion-pro-ii-simulator-professional-level-racing-experience.html"]racing simulator[/url]
0

#12 User is offline   kajali 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 29-December 11

Posted 29 December 2011 - 03:41 PM

So developing is a long process, there is not shortcut for this.






____________

I am part of MMORPG Developer

This post has been edited by kajali: 29 December 2011 - 03:43 PM

0

#13 User is offline   paddysmith 

  • New Member
  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 13-March 12

Posted 20 March 2012 - 07:32 PM

I knew the shortcuts Key:

F1: Starts Windows Help

F10: Activates menu bar options

SHIFT+F10 Opens a shortcut menu for the selected item (this is the same as right-clicking an object

CTRL+ESC: Opens the Start menu (use the ARROW keys to select an item)

CTRL+ESC or ESC: Selects the Start button (press TAB to select the taskbar, or press SHIFT+F10 for a context menu)

CTRL+SHIFT+ESC: Opens Windows Task Manager

ALT+DOWN ARROW: Opens a drop-down list box
0

#14 User is offline   arunnayak 

  • Active Member
  • PipPip
  • Group: Members
  • Posts: 20
  • Joined: 12-June 12

Posted 13 June 2012 - 10:24 PM

you should clear your mind what shortcuts you want. if you are using windows then it has its own shortcuts. if you are using linux or any other OS then they have their shortcuts.
0

#15 User is offline   eagllee 

  • New Member
  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 03-August 12

Posted 03 August 2012 - 07:32 PM

Great tips, thanks for sharing these.

Source: Martonline
[url="http://www.martonline.com.cn"]Martonline[/url]
[url="http://www.52martonline.com"]Remy human hair[/url]
0

#16 User is offline   Monetsmith 

  • New Member
  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 03-June 13
  • Gender:Male
  • Interests:My hobbies is to play the cricket and watch the reality show

Posted 06 June 2013 - 08:27 PM

Amazing tip on keyboard shortcuts.. I was not familiar with this one. Though I am an expert in this but I was not known about it. Thanks for sharing...
.
0

#17 User is offline   Đức Toàn 

  • New Member
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: 11-June 13

  Posted 11 June 2013 - 06:59 PM

Sika-san pham chong tham cong nghe cao
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users