用Sublime Text的理由
- 轻量级的编辑器
- 很简单的连接编译器/解释器
- 配置简单
- 插件也很多
- 用起来很顺手
Sublme Text的安装
Sublime Text包的安装
手动导入Package Control:
1.Perferences > Browse Packages
2.将Control.sublime-package复制到 Installed Packages/
3.重启Sublie Text
Sublime Text插件的安装
- Command + Shift + P
- Package Control: Install Package
- 看到左下脚:等号在左右移动(在加载仓库)
- 输入仓库名称即可
推荐仓库:
Sublime Text 集成编译器/解释器
1.Tools -> Build System -> New Build System
2.添加下列编程语言的配置
{ “shell_cmd”: “python3 "$file"”,
“encoding”: “utf-8”, “file_regex”: “^[ ]File "(…?)", line ([0-9]*)”,
“env”: {“LANG”: “en_US.UTF-8”} }
Perl
{ “cmd”: [“perl”, “$file”], “file_regex”: “.* at (.) line ([0-9])”, “selector”: “source.perl”, “encoding”: “UTF-8” }
Julia
{ “shell_cmd”: “/Applications/Julia-1.0.app/Contents/Resources/julia/bin/julia "$file"” }
3.添加前缀保存
4.运行前选择: Tools -> Build System -> X语言
5.Command + B即可运行