IDE,Git 配置使用

vscode

.vscode/launch.json配置

"cwd"

"cwd": "${fileDirname}"
-当前程序文件的目录;

"cwd": "${workspaceFolder}"
-当前工作区的目录,也就是vscode打开的目录;

这两个在debug的时候很重要,否则debug时,容易出现文件无法找到的错误。

git 同步

git push可视化替代,位于左下角的main旁边的🔄

git

git commit 只是将代码提交到了本地仓库,并没有提交到远程仓库。
需要git push推送到github上,才会更新远程仓库的代码

posted @ 2025-11-21 11:59  no_no  阅读(5)  评论(0)    收藏  举报