Eclipse Indigo: shift + tab outdent no longer works

After installing the new Eclipse Indigo, outdent no longer works when I press shift + tab on the line. Are there any settings that activate this again?

+4
source share
4 answers

The issue is still relevant for Eclipse Kepler

in the main menu β†’ Window β†’ Settings β†’ PHP β†’ Formatter β†’ {your formatting profile} β†’ Edit β†’ Authentication β†’ General settings:

change the tab policy to "Spaces" and the indent size to 4 (or any amount you want).

Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=210108

+11
source

Ok, that's why I'm currently using Eclipse Luna Service Release 1a (4.4.1), and I also ran into this problem after switching between spaces (4 spaces) instead of the standard tab spacing.

The problem for me was that the area in which I tried to de-tab / outdent / shift-tab (or whatever you want to name) contained 4xspaces and actual tabs.

Check if this is true for you. If so, you must make the transition from one to the other. To do this, select everything in the scope, then CTRL + F and replace all instances no matter how much space you use with "\ t".

Make sure the "Regular Expressions" checkbox is checked.

find and replace screenshot showing exactly what to do

SHIFT + TAB only works correctly if only tabs or spaces are used for indentation and will not do anything if there is a mix.

In addition, of course, make sure that the correct settings are applied for the tab policy in the main menu β†’ Window β†’ Settings β†’ PHP β†’ Formatting β†’ {your formatting profile} β†’ Edit β†’ Identification β†’ General settings.

enter image description here

Functionality works great and is designed for me since I did it. Make sure you restart the IDE, as I noticed that it will subtly stick to the old tabulation habits in a weird way if you don't.

+5
source

This may have something to do with formatting preferences (preferences-> java-> code style-> formatter). Today I ran into the same problem in Eclipse Juno and was able to solve it by setting the indent size to 4 and the tab size to 4 on the indent tab. It might be worth playing with these settings.

+2
source

For those who don't answer any of the other answers, just try installing PDT (Php Development Tools). It has the correct hotkeys to perform this action. I decided this way.

+1
source

All Articles