Indenting code in Sublime text 2?

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

    To indent with the same keys like Visual Studio Ctrl+K+D (I am a Visual Studio user so I am used to this combination) I suggest:

    [
    { "keys": ["ctrl+k", "ctrl+d"], "command": "reindent", "args": {"single_line": false} }
    ]
    

    Write this on Preferences>Key Bindings - User

提交回复
热议问题