Tab highlighting in the Eclipse / Aptana IDE

How to enable tab tab in Aptana / Eclipse IDE? I appreciate the way my Emacs inserts code by pressing the TAB key regardless of the current cursor position.

+4
source share
4 answers

I usually cut out some code and then paste it in a new place, while the code has the same indentation as before.

To fix this, I do the following:

Select a code block and press <Tab> (to move the code to the right)

Select a code block and press <Shift> + <Tab> (to move the code to the left)

+9
source

If you are in the middle of a line, you can step back from it by pressing Ctrl+i , and, of course, you can do this for a block of text by selecting it and pressing Ctrl+i . If it is in java files, you can set many more formatting rules ( Window > Preferences > Java > Code Style > Formatter ), and you can set it to automatically format whenever you save it by going to Window > Preferences > Java > Editor > Save Actions .

+1
source

From the eclipse documentation (see Eclipse Actions ), you will find and enter Smart Indent Mode. If you press CTRL + SHIFT + INSERT when inside the editor, the model below should display Smart Indent instead of indentation. The preferences of this mode are defined in Window > Preferences > Java > Editor > Typing . A checkmark in the section section for Tab reads: "The tab key corrects the indentation of the current line."

This sounds good, but it didn’t work for me :-( I did not find any signs of the eclipse error database, something is broken here. Maybe this works for you.

0
source

In the Aptana section, you can cancel your code by pressing CTRL + Shift + F.

0
source

All Articles