Skip to Content
Technical Articles
Author's profile photo Thomas Fiedler

Useful Keyboard Shortcuts for ABAP in Eclipse

I’m sure you already recognized that working with shortcuts in ABAP in Eclipse is much more efficient than using the mouse. The basic shortcuts that you need to start your development in eclipse are already described in the getting started document:
http://scn.sap.com/docs/DOC-29294
Also the Eclipse quick reference card for the shortcuts is very helpful for beginners:

https://blogs.sap.com/2012/07/02/adt-quick-reference-card/

But there are a lot more useful shortcuts available that might help you in some situations:

Editing source code:

Shortcut What it will do
CTRL+D Deletes the selected codeline
CTRL+SHIFT+DELETE Deletes the content from the cursor position to the end of the line
CTRL+DELETE Deletes the next word in the editor
CTRL+BACKSPACE Deletes the previous word in the editor
ALT+UP/DOWN Moves the selected codelines up/down in the editor
CTRL+ALT+UP/DOWN Duplicates Codelines before/after the selected codeline
CTRL+UP/DOWN Scrolls Line up/down
SHIFT+ENTER Adds a new line below the current line and positions the cursor in that line
CTRL+SHIFT+ENTER Adds a new line above the current line and positions the cursor in that line
CTRL+Z Undo changes
ALT+SHIFT+R Rename the selected object, e.g. variable, method, class
CTRL+1 Opens Quickfix/Quickassist Dialog on the selected element
CTRL+7 Comments/Uncomments selected code in the editor
SHIFT+F1 Formats the source code (aka. Pretty Printer)
CTRL+SHIFT+F1 Formats the marked source code or source code block (e.g. method)
CTRL+N Creates new development object
CTRL+SHIFT+X Convert marked editor content to upper case
CTRL+SHIFT+Y Convert marked editor content to lower case
CTRL+U Unlock Editor

Navigation:

CTRL-L Jump to line in editor
CTRL-O Launch the quick outline
ALT+LEFT/RIGHT Navigate through the editor navigation history
CTRL+ ; / : Step quickly through the editor markers, like tasks, bookmarks, error markers, ATC findings etc.
F3 Navigate to the definition of the selected element, e.g. variable, method, attribute etc.

Editor Tabs:

CTRL + E Displays a list of all open editors
CTRL + F6 Easily switch between the editor tabs (Like Tab for Windows)
CTRL + F7 Easily switch between all eclipse views
CTRL + F8 Easily switch between the perspectives
CTRL + M Maximize the active editor or viewer to full-screen mode
CTRL+3 Easily open Eclipse views or trigger command via the Quick Access Input field
CTRL+PAGE UP/PAGE DOWN Navigate through the editor tabs forward and backward
ALT+PAGE UP/PAGE DOWN Navigate through the tabs of the class editor between global class, local class and test classes
CTRL + F4 Close the active editor tab
CTRL+SHIFT+F4 Close all editor tabs

Debugging:

CTRL+SHIFT+B Set a line break point in the ABAP editor
 

In case you need a complete list of all available shortcuts you can use the shortcut CTRL-SHIFT-L in eclipse that opens a small window with a detailed list.Hope there are some interesting shortcuts in the list for you.
Have fun,
Thomas.

Assigned Tags

      19 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gerald Roux
      Gerald Roux

      Hi Thomas,

      Thanks for this list, very useful.  Of the top of my head, some shortcuts I find I use a lot:

      Alt+F2     -     Shows the signature of the method you are currently editing

      Tab/Shift+Tab     -     When selecting a multiple lines of code, Tab indents the selection and Shift+Tab decreases the indent

      Regards, Gerald

      Author's profile photo Joachim Rees
      Joachim Rees

      Alt+F2     –     Shows the signature of the method you are currently editing

      Thats' super useful, thanks a lot! I had just been looking for this yesterday!

      Author's profile photo Former Member
      Former Member

      Good morning friends, I would like to know how to create a "test Form" through the declaration of a "Perform Test".

      Thanks,

      Author's profile photo Former Member
      Former Member

      Hi Cicero,

      it looks like there is no help for this in ADT.

      Why should it? It's an obsolet command?

      Regards

      Andrea

      Author's profile photo Tim Braner
      Tim Braner

      Hi Thomas,

      thanks for the list I would like to add the shortcut:

      CTRL+SHIFT+L - This open a list with all shortcuts available.

      regards,

      Tim

      Author's profile photo Thomas Fiedler
      Thomas Fiedler
      Blog Post Author

      Thanks Tim,

      I have added it to the blog.

      Regards,

      Thomas.

      Author's profile photo Yuvaraj Shanmugam
      Yuvaraj Shanmugam

      Press Ctrl + Shift + L while once again while this shortcut overview screen is displayed, it takes you to the 'Keys' section of preferences where you can edit and change the shortcuts..

      (I would have liked a filtered view there that talks only about ABAP related shortcuts)

      Author's profile photo Gaurav Patwari
      Gaurav Patwari

      This is too handy. Thanks for compiling it into one. keep it up.

      Author's profile photo Diptimay Mishra
      Diptimay Mishra

      Hi Experts,

        My keypad in eclipse has screwed up. Not sure what combination key I pressed. The letters are getting shift to right as I type. It looks like everything was types in reverse direction. And the enter and space bar is not working. Is there any short key to correct this weird behavior?

      Thanks

      Dip

      Author's profile photo Joachim Rees
      Joachim Rees

      very nice + really helpfull!

      (I was searching for how to switch tabs)

      Note:

      CTRL+PAGE UP/PAGE DOWN Navigate through the editor tabs forward and backward

      does work for me until I tab into a SapGui-Tab; the nothing happens anymoren.

      I think this is due tu the fact that it has some kind of meaning in SapGui, and thus cannot be avoided?

      best

      Joachim

      Author's profile photo Joachim Rees
      Joachim Rees

      The basic shortcuts that you need to start your development in eclipse are already described in the getting started document:
      http://scn.sap.com/docs/DOC-29294

      I have an older printout with AdT-shortcuts attached to my screen (physically, with tape 🙂 ) for some years already.
      I refers to http://scn.sap.com/docs/DOC-29607 . Yesterday I thought this seems to not have been migrated but now its redirecting fine! Probably miss-typed something yesterday...

      Author's profile photo Luiz Martin
      Luiz Martin

      Hi!

       

      I can`t find a way to do the Alt+Shift selection and/or editing in ADT.

      Is it possible?

      That is veeeeery useful in SAP GUI......

      Author's profile photo Nemanja Simović
      Nemanja Simović

      Hi Luiy,

      It is possible. Press Alt+Shift+A to enter in block mode. Then hold Shift key and move the cursor with mouse or arrow keys.

      Regards,
      Nemanja

      Author's profile photo Raja mohammed Kader Meeran Sulaiman
      Raja mohammed Kader Meeran Sulaiman

      Is there an option to customize the key shortcuts ?

      Author's profile photo Stefan Eisen
      Stefan Eisen

      Yes, you there is. You can customize the keys in Window->Preferences->General->Keys.

      Author's profile photo Raja mohammed Kader Meeran Sulaiman
      Raja mohammed Kader Meeran Sulaiman

      Thanks.

      Author's profile photo Joachim Rees
      Joachim Rees

      This is one of those examples, where an ooold blog (2013!) is still very useful.
      ctrl+F6 and ctrl+shift+pag-up/down to navigate trough tabs was what I took away today! @keyboardOnly

      Author's profile photo Thomas Fiedler
      Thomas Fiedler
      Blog Post Author

      Some blog posts are timeless. Especially in the ABAP world 🙂

       

      Regards,

      Thomas.

      Author's profile photo Ulrich Becker
      Ulrich Becker

      It's nice ot find this blog and also colections like this Cheat-List with usefuls Shortcuts .

      I'd rather like to have the most useful shortcut in a well organized Context Menue.

      For me having the neeed to share all nice functionalities in several blogs and to search for them and keep the found gems is a hint for a not very user friendly ui.

      I don't get, why somone has to search for useful stuff and to know a lot of keyboard inputs for this (and for  loads of other new Tools). Yes , i know, there is a Shortcut to list all Shortcuts,  but uups, i forgot it again, and it might be a quite long list.

      Maybe there is a useful plugin to configure useful shortcuts in form of a menue/button-list ?