[eclipse] Keyboard shortcut to "untab" (move a block of code to the left) in eclipse / aptana?

Well, hopefully the question is self-explanatory.

It's so easy to select a block of code and tab out, but how about the reverse?

Currently, I just search & replace for whitespace at the beginning of the line. Anything faster?

This question is related to eclipse ide aptana zend-studio

The answer is


Don't know if anyone is still looking here, but you can do this by going to Window menu > Preferences, then open the General list, choose keys. Scroll down the list of keys until you see "Shift Left". Click that. Below that you'll see some boxes, one of which lets you bind a key. It won't accept Shift-Tab, so I bound it to Shift-`. Apply-and-close and you're all set.


Shift-tab does that in Flex Builder (Based on Eclipse) - SO it hopefully should work in regular eclipse :)


Here is a general answer for untab :-

In Python IDLE :- Ctrl + [

In elipse :- Shitft + Tab

In Visual Studio :- Shift+ Tab


Shift-tab doesn't seem to work on multi-lines in Aptana. It also doesn't work on single lines with a single preceding space. Any workarounds? I use shift-tab (outdent) to fix badly formatted code all the time.

I miss NetBeans ...

UPDATE: it works on multi-newlines, if the multi-lines have the same level of indentation. It should just continue outdenting the other lines that haven't reached the beginning of the new line yet. Is there an option to change this I wonder?


In Pycharm Just use Shift+Tab to move a block of code left.


In general Shift + Tab works for any environment.


This workaround works most of the time. It uses eclipse's 'smart insert' features instead:

  1. Control X to erase the selected block of text, and keep it for pasting.
  2. Control+Shift Enter, to open a new line for editing above the one you are at.
  3. You might want to adjust the tabbing position at this point. This is where tabbing will start, unless you are at the beginning of the line.
  4. Control V to paste back the buffer.

Hope this helps until Shift+TAB is implemented in Eclipse.


Shift-tab outdents again :)

Here's where the standard shortcut keys are covered:

http://wiki.eclipse.org/User_Interface_Guidelines#Standard_Accelerators

You'll find many of the more esoteric ones here:

http://wiki.eclipse.org/FAQ_What_editor_keyboard_shortcuts_are_available%3F


Examples related to eclipse

How do I get the command-line for an Eclipse run configuration? My eclipse won't open, i download the bundle pack it keeps saying error log strange error in my Animation Drawable How to uninstall Eclipse? How to resolve Unable to load authentication plugin 'caching_sha2_password' issue Class has been compiled by a more recent version of the Java Environment Eclipse No tests found using JUnit 5 caused by NoClassDefFoundError for LauncherFactory How to downgrade Java from 9 to 8 on a MACOS. Eclipse is not running with Java 9 "The POM for ... is missing, no dependency information available" even though it exists in Maven Repository The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. on deploying to tomcat

Examples related to ide

How can I view the Git history in Visual Studio Code? How to ignore a particular directory or file for tslint? How do I completely rename an Xcode project (i.e. inclusive of folders)? Where is the visual studio HTML Designer? How to disable gradle 'offline mode' in android studio? Android studio Error "Unsupported Modules Detected: Compilation is not supported for following modules" Android Studio was unable to find a valid Jvm (Related to MAC OS) QtCreator: No valid kits found Difference between WebStorm and PHPStorm package android.support.v4.app does not exist ; in Android studio 0.8

Examples related to aptana

Cannot install Aptana Studio 3.6 on Windows Python - A keyboard command to stop infinite loop? How Connect to remote host from Aptana Studio 3 Keyboard shortcut to "untab" (move a block of code to the left) in eclipse / aptana?

Examples related to zend-studio

Keyboard shortcut to "untab" (move a block of code to the left) in eclipse / aptana?