Indenting code in Sublime text 2?

后端 未结 20 2260
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 17:19

In Visual Studio I can press Ctrl+K+D to indent everything so the code is structured nicely and readable. Is there a shortcut in Sublime 2 t

相关标签:
20条回答
  • 2020-11-28 17:52

    code formatter.

    simple to use.


    1.Install


    2.press ctrl + alt + f (default)


    Thats it.

    0 讨论(0)
  • 2020-11-28 17:56

    There is no default shortcut for reindenting a file. However you can create one by following eznme's answer above.

    You can also use the Command Palette by pressing:

    1. Control+Shift+P (or +Shift+P on a Mac)
    2. Type the first few characters of Reindent e.g: rein
    3. Press Enter to run the command
      (The first command at the top should now show Indentation: Reindent Lines)
    0 讨论(0)
提交回复
热议问题