Compile one cpp file:
g++ input.cpp -o outputComiple couple files to a output file:
g++ input1.cpp input2.cpp -o outputCommon detailed command: ClickMe Common commands:
tmux [new -s SessName -n WinName] # start a new seesion
tmux a # retrieve the last session
tmux at [-t SessName] # retrieve aimed session
tmux ls # list all the tmux sessions
tmux kill-session -t SessNametmux d # detach the present sessiond # detach the present session
:new # start a new session
s # list all the tmux sessionsc # start a new win
w # list all the wins
% # horizontally segment
" # vertically segment- add extension: Code Runner
- add in User Settings:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe" // use cmd instead of powershell
"code-runner.runInTerminal": true, //在内置终端运行
"code-runner.executorMap": {
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && \"$fileNameWithoutExt.exe\"",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && \"$fileNameWithoutExt.exe\"",
//"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
}powershell不支持中文路径,因此替换为cmd;MinGW配置gdb太麻烦。