bat
{
"shell_cmd": "@echo off && chcp 65001 >nul && $file",
// "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"file_patterns": ["*.bat"],
"selector": "source.bat",
"working_dir": "$file_path",
}
python
{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9])*",
"env": {"PYTHONIOENCODING": "utf8"},
"selector": "source.python"
}
cpp
{
"shell_cmd": "g++ ${file} -o ${file_path}/${file_base_name}.exe -std=c++11 && ${file_path}/${file_base_name}.exe",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"file_patterns": ["*.cpp","*.cc"],
"selector": "source.bat",
"working_dir": "$file_path",
}
markdown
preference 中切换主题