Jump to content

[Guide]Eclipse-Shortcut keys


FighterBoss

Recommended Posts

Shortcut keys make life that little bit quicker! They aid you in working faster and become very handy when programming in Eclipse.

 

 

Shortcuts:

 

 

Ctrl+Shift+T

 

Find Java Type

 

Start typing the name and the list gets smaller. Try typing the capital letters of the class only (e.g. type "CME" to find "ConcurrentModificationException")

 

Ctrl+Shift+R

 

Find Resource

 

Use this to look for XML files, text files, or files of any other type. which are in your workspace.

 

Ctrl+E

 

Open Editor Drop-Down

 

Presents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key.

 

Ctrl+O

 

Quick Outline

 

Use this to find a method or a member variable in a class. Start typing to limit the choices. Press Ctrl+O a second time to include inherited methods.

 

Ctrl+Space

 

Content Assist

 

Context sensitive content completion suggestions while editing Java code.

 

Ctrl+Shift+Space

 

Context Information

 

If typing a method call with several parameters use this to show the applicable parameter types. The current parameter where the cursor is will be shown in bold.

 

Ctrl+Shift+O

 

Organize Imports

 

After typing a class name use this shortcut to insert an import statement. This works if multiple class names haven't been imported too.

 

F3

 

Open Declaration

 

Drills down to the declaration of the type, method, or variable the cursor is on. This works much like a browser hyperlink.

 

Alt+Left

 

Backward History

 

This works like a browser's Back button.

 

Alt+Right

 

Forward History

 

This works like a browser's Forward button

 

Ctrl+L

 

Go to Line

 

Go to a specific line number.

 

F4

 

Open Type Hierarchy

 

Show the type hierarchy (downward tree) or the supertype hierarchy (upward tree).

 

Ctrl+Alt+H

 

Open Call Hierarchy

 

Show where a method is called from. In the Call Hierarchy view keep expanding the tree to continue tracing the call chain.

 

Ctrl+H[/b]

 

Open Search Dialog

 

Opens a search dialog with extensive search options for Java packages, types, methods, and fields.

 

Alt+Shift+R

 

Rename - Refactoring

 

Use this to rename type, method, or field. All existing references will be refactored as well.

 

Alt+Shift+L

 

Extract Local Variable

 

Use this to create a local variable from the selected expression. This is useful for breaking up larger expressions to avoid long lines.

 

Alt+Shift+M

 

Extract Method

 

Use this to extract a new method from existing code. The parameter list and return type will be automatically created.

 

Alt+Shift+Up

Alt+Shift+Down

Alt+Shift+Left

Alt+Shift+Right

 

Select Enclosing Element / Restore Last Selection / Select Previous Element /

Select Next Element

 

Useful for selecting context-sensitive blocks (e.g. surrounding loop, method, class, etc.)

 

Ctrl+Up

Ctrl+Down

 

Scroll Line Up / Scroll Line Down

 

Very handy if you want to scroll by 1 line without changing your cursor position or using the mouse.

 

Ctrl+Shift+U

Alt+Shift+U

 

Go to Previous Member / Go to Next Member

 

Great for stepping down through the methods of a Java source file.

 

Ctrl+Shift+U

Alt+Shift+U

 

Show Occurrences in File / Remove Occurrences Annotations

 

Use this to search within the same file - useful for occurrences of private fields and methods.

 

Ctrl+Shift+P

 

Go to Matching Bracket

 

Helps to find the closing bracket of lengthly if-else statements.

 

Ctrl+J

Ctrl+Shift+J

 

Incremental Find / Reverse Incremental Find

 

The first matching occurrence is shown with each typed letter. Press again and the next matching occurrence is shown.

 

Shift+Enter

Ctrl+Shift+Enter

 

Insert Line Below / Insert Line Above

 

Insert a line above or below the current line.

 

Ctrl+/

Ctrl+\

 

Add Block Comment / Remove Block Comment

 

Comment in/out blocks of code with a key stroke.

 

Ctrl+M

 

Maximize Active View or Editor

 

Maximize the current view or editor at the expense of all other currently shown views. Press again to restore to normal view.

 

Ctrl+F6

Ctrl+F7

Ctrl+F8

 

Next Editor / Next View / Next Perspective

 

Learn these to switch among edited files, open views and perspectives.

 

Ctrl+Alt+Up

Ctrl+Alt+Down

 

Duplicate Lines / Copy Lines

 

Doesn't seem like it at first but a great shortcut once you learn to use it. Instead of select, copy and paste simply select and duplicate without affecting the clipboard.

 

Alt+/

 

Word Completion

 

This is excellent for code editing or writing plain help files with variables and other words having no English language equivalents. The word completion is based on the set of words already present in the current file.

 

Ctrl+I

 

Correct Indentation

 

Select a block of Java code or an entire class file and use this shortcut to correct its indentation.


Credits : Well,i learn these shortcut keys from a video about eclipse.

I thought that it was shared here,but i search and i didn't find them :)

So here they are for Eclipse users.

 

Cheers

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • DISCORD : utchiha_market telegram : https://t.me/utchiha_market SELLIX STORE : https://utchihamkt.mysellix.io/ Join our server for more products : https://discord.gg/hood-services https://campsite.bio/utchihaamkt  
    • Server Rates: » Xp 500x. » Sp 500x. » Aden 500x. » Drop 1x. » PartyXp 2x. » PartySp 2x. » Starting character level -61. Enchant rates: » Safe enchant +4. » Blessed and simple scrolls max enchant (+16). » Crystal scrolls max enchant (+20). » Simple enchant scrolls chance – 65%. » Blessed enchant scrolls chance – 100%. » Crystal enchant scrolls chance – 50% Augmentations: » Mid life stone skill chance – 5%. » High life stone skill chance – 10%. » Top life stone skill chance – 20%. » Augments 1+1 Unique features: » Main town – Giran » Automatic-Manual Potions. » Working 2 castle sieges. (Giran-Aden) » SPS cancel lasts 10 seconds and than buffs come back. » Stackable scrolls, lifestones, book of giants. » Unique pvp zone » More then 11 active raid bosses. » Wedding system. » Unique farming areas. » Npc skill enchanter. » Full npc buffer with auto buff. » Max count of buffs – 55. » Max subclasses – 4. » Free and no quest class change. » Free and no quest sub class. » Raid boss drop nobless item. » No weight limit. » Unique protection anti-hwy armor for archers/daggers etc. » Ingame password change. » Top pvp/pk/online ranks NPC. » Unique monsters & NPC. » Interlude retail skills. » Server up-time [24/7] [99]%. » Perfect class balance (all class can kill all class depending on players skill and setup knowledge,gear,augmentations). » Announcements on double kills triple kills etc. » Announcements on Grand Boss death , with the name of the killer as well as clan name of the player. » Information Npc in game with all servers infromations. Custom server gear : 1). Titanium Armor Lv.1 2). Epic Armor Lv.2 3). Epic Weapons-Kamikaze-Black S grade (Same Stats) 4). Demonic-Angelic Wings-Baium Hair-Custom Accessories (SameStats) 5). Custom Fighter/Mage tattoo Lv1-Lv2-Lv3 6). Shirt (STR,CON,INT +1) 7). Custom Shields Server Commands: .tvtjoin .tvtleave – Join or leave tvt event. .ctfjoin .ctfleave – Join or leave ctf event. .dmjoin .dmleave – Join of leave dm event. .online – current online players count. .repair – repairs stuck character in world. .menu – opens online menu panel. .exit – PVP zone exit in case you are bullied. .changepassword - Opens online menu then u can change ur password in game. .farm - Enable/disable autofarm Event system: » TVT event » CTF event » DM event » Tournament Event » Party Zone » Unique event shop. Olympiad game: » Retail olympiad game. » Competition period [1] week. » Olympiad start time [18:00] end [00:00] GMT+2. » New Heroes every Sunday.
    • Tomorrow grand opening lests go 🙂 
  • Topics

×
×
  • Create New...