Indenting code in Sublime text 2?

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

    No one seems to love mac re-indentation, So here How I do it:

    [
       { "keys": ["command+shift+i"], "command": "reindent"}
    ]
    

    In Preferences > Key Binding - User

    One more extra tip: add

    { "keys": ["command+0"], "command": "focus_side_bar" }
    

    to have sidebar file tree view navigation using keyboard.

    Note: Add , at the end of each {}, if you have more than one {} set of objects

提交回复
热议问题