Sublime Text 配置
Sublime Text 配置
Sublime确实好用 主要是快捷键多但是界面很简洁 有一种舒适感('$ω$')
Windows10的说
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ -Wall -std=c++0x \"$file_name\" -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.cpp",
"variants":
[
{
"name": "Run",
"shell_cmd": "g++ -Wall -std=c++0x \"$file\" -o \"$file_base_name\" && \"${file_path}/${file_base_name}\""
},
{
"name": "RunInCmd",
"shell_cmd": "g++ -Wall -std=c++0x \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
}
]
}
Tool -> Build System -> New Build System
环境变量、ctrl + shift + B
$tips:$食用时记得先编译..然后再$Run\_in\_bash$
noilinux(Ubuntu)的说
{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ \"$file_name\" -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.cpp",
"variants":
[
{
"name": "char_phi:Run",
"shell_cmd": "./${file_base_name}"
},
{
"name": "char_phi:Runinbash",
"shell_cmd": "gnome-terminal -x bash -c \"'${file_path}/${file_base_name}';read -p '\nchar_phi:exe_ended'\""
}
]
}
$$\huge{\mathcal{Here\ We\ Are,\ Nick\ Of\ Time\ !}}$$

浙公网安备 33010602011771号