查找和替换 : 【807905000F94C2】替换为【C6410501B20090】
Python.sublime-build
{
"cmd": ["python", "-u", "${file_name}"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"working_dir": "${file_path}",
"selector": "source.python",
"env": {"PYTHONIOENCODING": "utf-8"},
"variants":
[
{
"name": "Python (cmd)",
"shell_cmd": "start cmd /c \"python -u \"${file_name}\" & pause\""
}
]
}
JavaC.sublime-build
{
"shell_cmd": "javac -encoding UTF-8 \"${file_name}\" && start cmd /c \"java \"${file_base_name}\" & pause\"",
"file_regex": "^(...*?):([0-9]*):?([0-9]*)",
"working_dir": "${file_path}",
"selector": "source.java",
"encoding": "gbk",
"variants":
[
{
"name": "Single File Build",
"shell_cmd": "javac -encoding UTF-8 \"${file_name}\""
},
{
"name": "Single File Run",
"shell_cmd": "start cmd /c \"java \"${file_base_name}\" & pause\""
},
{
"name": "Single File Build & Run",
"shell_cmd": "javac -encoding UTF-8 \"${file_name}\" && start cmd /c \"java \"${file_base_name}\" & pause\""
}
]
}
C Single File.sublime-build
{
"shell_cmd": "gcc -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\" && start cmd /c \"\"${file_base_name}\" & pause\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c",
"encoding": "gbk",
"variants":
[
{
"name": "Single File Build",
"shell_cmd": "gcc -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\""
},
{
"name": "Single File Run",
"shell_cmd": "start cmd /c \"\"${file_base_name}\" & pause\""
},
{
"name": "Single File Build & Run",
"shell_cmd": "gcc -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\" && start cmd /c \"\"${file_base_name}\" & pause\""
}
]
}
C++ Single File.sublime-build
{
"shell_cmd": "g++ -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\" && start cmd /c \"\"${file_base_name}\" & pause\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${file_path}",
"selector": "source.c++",
"encoding": "gbk",
"variants":
[
{
"name": "Single File Build",
"shell_cmd": "g++ -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\""
},
{
"name": "Single File Run",
"shell_cmd": "start cmd /c \"\"${file_base_name}\" & pause\""
},
{
"name": "Single File Build & Run",
"shell_cmd": "g++ -finput-charset=UTF-8 -fexec-charset=GBK -Wall \"${file_name}\" -o \"${file_base_name}\" && start cmd /c \"\"${file_base_name}\" & pause\""
}
]
}
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",
"encoding": "gbk",
"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": "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}"
}
]
}