Well, In eclipse, I can set the code-style template , when the code finish, I could indent it by the template. For example,
In the coding style template, I set the style is as following:
aDict = {1: 'a', 2: 'b'}
## that is each variable got a whitespace in front of it
If I write the code like this
aDict = {1:'a',2: 'b'}
How can I indent the code after I wrote it?
I tried the "code-Auto Indent Lines", which is binding to Hot-Key "Ctrl + Alt + I",but It seems doesn't work
That action is called Reformat code
. You can find it in Code
menu, somewhere in the middle, or use the hotkey CTRL + Shift + L