Indenting code in Sublime text 2?

后端 未结 20 2481
没有蜡笔的小新
没有蜡笔的小新 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:49

    The reindent command only works on the currently selected lines unless the "single_line" argument is set to false.

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

    Now, pressing f12 will reindent the entire document.

提交回复
热议问题