How to enable auto level in Sublime Text 3?

I want to auto-align my code so that it is easier to read with one click. I am working on Sublime Text 3 and want to know about a method through which I can enable suto-indent code with just one click.

+4
source share
4 answers

In the title bar, go to Preferences> Key Bindings, then add this binding to the Key Bindings - User file.

{"keys": ["alt+shift+f"], "command": "reindent", "args": {"single_line": false}}

Now that you want to automatically align the code, just highlight the desired code and press alt+shift+f

Source: https://coderwall.com/p/7yxpdw/auto-indenting-on-sublime-text-3

+7
source

Using https://github.com/randy3k/AlignTab , you can activate Table Modethat constantly aligns the code for you until you run the command Exit Table Mode, for example:

enter image description here

0
source

{"keys": ["f12"], "command": "reindent", "args": {"single_line": false}}

0
source

Source: https://habr.com/ru/post/1677892/


All Articles