notePad++ 直接运行cpp文件如何配置。

1 先参考 https://blog.csdn.net/weixin_39989973/article/details/110737759
2 notePad建立工作空间后,再创建一个子目录。
3 cmd /k e: & cd "$(CURRENT_DIRECTORY)" & g++ "$(FILE_NAME)" -o "$(NAME_PART)" & "$(NAME_PART).exe"
// g++要配置path路径
// e:是切换到指定盘符,后面要 & 再cd .
// cd e: "$(CURRENT_DIRECTORY)" 会出错

// 后面可以加上 & pause & exit

posted @ 2025-05-29 14:42  梧桐将秋色  阅读(26)  评论(0)    收藏  举报