下载地址:http://www.sublimetext.com/3
1、安装完之后,tools菜单下最下一个点一下,安装Package Control 插件
2、Preferences菜单下,点Package Control 点 install Package
3、安装插件 SublimeREPL 、 SublimeCodeIntel 、 AutoPep8 、ConvertToUTF8
4、file--set file encoding to--utf-8
环境变量设置
5.0
C:\Program Files\MSBuild\12.0\Bin
6.0
C:\Windows\Microsoft.NET\Framework64\v4.0.30319;
定制C#.sublime-build文件
Tools--Build System--New Build System
复制粘贴以下代码,保存文件名:C#.sublime-build
{
"shell_cmd": "csc /out:\"${file_path}/${file_base_name}.exe\" \"${file}\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.cs",
"variants":
[
{
"name": "Build & Run",
"shell_cmd": "csc /out:\"${file_path}/${file_base_name}.exe\" \"${file}\" && start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
"working_dir": "${file_path}"
},
{
"name": "Run",
"shell_cmd": "start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
"working_dir": "${file_path}"
},
{
"name": "Build (Form)",
"shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:\"${file_path}/${file_base_name}.exe\" \"${file}\"",
"working_dir": "${file_path}"
},
{
"name": "Build & Run (Form)",
"shell_cmd": "csc /t:winexe /r:System.Windows.Forms.dll;System.Drawing.dll /out:\"${file_path}/${file_base_name}.exe\" \"${file}\" && start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
"working_dir": "${file_path}"
},
{
"name": "Run (Form)",
"shell_cmd": "start \"${file_base_name}.exe\" /d \"${file_path}\" \"${file_base_name}.exe\"",
"working_dir": "${file_path}"
},
]
}
C#.sublime-build
编译运行
选择编译运行,Build Wtih ,Ctrl + Shift + B
编译运行,Build,Ctrl + B
C#暂停命令行窗口
Console.ReadLine();