解决源码和装入文件杂糅。

此命令将自动在源码文件夹下生成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

相关文章:

  • 2022-12-23
  • 2021-07-02
  • 2021-06-10
  • 2021-06-07
  • 2022-12-23
  • 2021-08-18
  • 2022-01-17
猜你喜欢
  • 2022-01-07
  • 2021-12-29
  • 2021-11-23
  • 2021-12-10
  • 2021-06-04
  • 2022-12-23
  • 2021-04-18
相关资源
相似解决方案