2015-11-25 33 views

回答

3

在Sublime中,選擇菜單Tools> Build System> New Build System 粘貼到以下文本中。將它保存爲「C#.sublime-build」。

{ 
    "cmd": ["cmd", "/c", "del", "${file/\\.cs/\\.exe/}", "2>NUL", "&&", "csc", "/nologo", "/out:${file/\\.cs/\\.exe/}", "$file"], 
    "file_regex": "^(...*?)[(]([0-9]*),([0-9]*)[)]", 
    "variants": [ 
     { "name": "Run", "cmd": ["cmd", "/c", "start", "cmd", "/c", "${file/\\.cs/\\.exe/}"] } 
    ], 
} 

或者這種替代線構建並運行這一切,當你把CTRL-B:

"cmd": ["cmd", "/c", "del ${file/\\.cs/\\.exe/} 2>NUL && csc /nologo /out:${file/\\.cs/\\.exe/} $file && start cmd /c ${file/\\.cs/\\.exe/}"], 
+0

按Ctrl-B版本,按Ctrl-Shift-B鍵運行,F4跳轉到下一個錯誤 –

相關問題