문제

I'm trying to configure ST3 keybindings to reindent whole text, save file and refresh the browser on ctrl+s. I'm using Chain of Command and Browser Refresh plugins, but the problem is I don't know how to pass commands with arguments, so that the reindent command would affect whole text instead of one line only. "single_line" : false seems to be ignored.

"keys": ["ctrl+3"], 
    "command": "chain", 
    "args": {
        "commands": [
        ["reindent",{"context": "window", "args": {"single_line": false}}],
        ["browser_refresh"]
        ]
    }
도움이 되었습니까?

해결책

I've made it.

"keys": ["ctrl+s"], 
    "command": "chain", 
    "args": {
        "commands": [
        ["reindent",{"single_line": false}],
        ["browser_refresh"]
        ]
    }
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top