解決源碼和裝入文件雜糅。
此命令將自動在源碼文件夾下生成bin目錄,將編譯產生的裝入模塊放入bin目錄並執行。
"code-runner.executorMap":{ "cpp": "$path=-join ($dir,'\\bin');$exist=Test-Path $path;if ($exist -eq $False) {mkdir $path};cd $dir;$outpath=-join ($path,'/$fileNameWithoutExt'); g++ -std=c++11 $fileName -o $outpath; ;if ($?){./bin/$fileNameWithoutExt}" }
須設置vscode默認shell為powershell