Indenting code in Sublime text 2?

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

    Just in case this stop working for anyone like me, in OS X, the command key is identified as superso it should be able to do something like this:

    [
        {
        "keys": ["super+i"], 
        "command": "reindent", 
        "args": {
            "single_line": 
            false}
        } 
    ]
    

    in this case using command+i is going to indent your whole code (eclipse like :) )

提交回复
热议问题