Remove code indentation action (CTRL+I)
Hi
When in the Java perspective there is the main menu item "Source", which has menu item "Correct Indentation" with the associated accelerator key combination "Ctrl+I".
The Scala perspective does not have the "Source" menu item but still has the Ctrl-I combination. Unfortunately it does not work correctly and incorrect formats code indentation. It's probably as simple as removing the Ctrl-I mapping.
Coming from a Java background I was using Ctrl-I and it took me a while to discover that I should have been using Ctrl-Shift-I.
Graham
The installation details are:
Scala plugin version: 2.0.2.v-2_09-201207120929-81d0972
Eclipse version: 3.7.2.v201202080800
When in the Java perspective there is the main menu item "Source", which has menu item "Correct Indentation" with the associated accelerator key combination "Ctrl+I".
The Scala perspective does not have the "Source" menu item but still has the Ctrl-I combination. Unfortunately it does not work correctly and incorrect formats code indentation. It's probably as simple as removing the Ctrl-I mapping.
Coming from a Java background I was using Ctrl-I and it took me a while to discover that I should have been using Ctrl-Shift-I.
Graham
The installation details are:
Scala plugin version: 2.0.2.v-2_09-201207120929-81d0972
Eclipse version: 3.7.2.v201202080800
Leave a comment
Actually, CTRL+I is "supported" in a Scala Editor, and it should indeed perform indentation on a selected line/block. However, as you have noticed, this is not quite working the way you would expect in most of the situations. We are well aware of the limitation, and there are a considerable number of tickets opened for indentation issues.
CTRL+SHIFT+F is for source formatting, and it works pretty well.
All this to say that I agree with you: it would be a good idea to simply remove the Code Indentation action and force people into using the right action, i.e., CTRL+SHIFT+F.
CTRL+SHIFT+F is for source formatting, and it works pretty well.
All this to say that I agree with you: it would be a good idea to simply remove the Code Indentation action and force people into using the right action, i.e., CTRL+SHIFT+F.
on 2012-11-19 05:00 *
By Mirco Dotta
Summary changed from code indentation to Remove code indentation action (CTRL+I)
on 2015-03-27 09:43 *
By Simon Schäfer
Version changed from 2.0.2-final-29 to 4.0.0
Milestone changed from Helium SR1 to -none-