1

Switching from Tabs to Spaces in our Java project, I am looking for the Eclipse shortcut so basic that I can't remember it which allows, on a given line, to move the caret to the next "group of spaces".

With tabs, it is pretty easy, because they count as a single character, so just using arrow keys is okay, but with spaces, if, let's say, the indentation level is based on 4 spaces, Left or Right arrows must be pushed down 4 times before accessing the next indentation level.

Thanks!

Lastnico
  • 1,473
  • 11
  • 13
  • So basically you need an hotkey to move the caret by 4 space a time without pressing arrow keys 4 times.. right? – araknoid Aug 27 '13 at 08:27
  • Yes, I do. Eclipse does have this feature builtin, I saw it before, but can't remember it... – Lastnico Aug 27 '13 at 09:06
  • Are you indenting with spaces manually or you configured eclipse? Try to give a look at this [how do i change eclipse to use spaces instead of tabs](http://stackoverflow.com/questions/407929/how-do-i-change-eclipse-to-use-spaces-instead-of-tabs). If you configured it with spaces, i think the indent line will work as intended. – araknoid Aug 27 '13 at 09:12
  • No, still not a shortcut I look for... – Lastnico Aug 30 '13 at 13:48
  • Is it Alt+left-arrow and Alt+right-arrow that you are looking for? – araknoid Aug 30 '13 at 13:51
  • Hehe, no, still not, this moves from a Tab Editor to another, while I search the shortcut for moving (left or right) from a "Tabulation character" or "X-space in a row" (X being set in Eclipse settings) – Lastnico Sep 02 '13 at 11:23

1 Answers1

0
  1. Default indentation: Ctrl+I
  2. Right indentation: Tab
  3. Left: Shift+Tab
mx0
  • 6,445
  • 12
  • 49
  • 54
Gideon
  • 1