我如何设置默认启动。 vs代码中的申请
我已经设置了我的启动。Jason和Tasks.json文件的VS代码文件,可以使用该文件调试我的应用程序。问题是,每当我创建一个新应用程序时,我都必须从一个旧应用程序中找到文件,然后将其复制到新的应用程序文件夹中。而且,如果我删除这些.json文件,我别无选择,只能再次重写它们,这非常不便。
有没有办法将这些文件设置为所有C/C ++项目的默认文件?因此,每当我创建一个新项目时,VS代码都会自动加载这些文件?
I have set up my launch.jason and tasks.json files for VS Code, and can debug my applications using that. The problem is whenever I create a new application, I have to find the files from one of my old apps and copy paste them to the new application folder. And if I delete these .json files, I have no option but to rewrite them again which is pretty inconvenient.
Is there a way to set these files as the default ones for all C/C++ projects? So whenever I create a new project, VS Code automatically loads these files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然我自己从未做过这件事,但 vs代码文档建议您可以拥有在项目之外范围范围内范围范围的启动设置:
docs 似乎也暗示VS代码可能具有通过更广泛的范围范围的任务, a“ task task Provister ”:
我意识到实际使用这些功能的人的答案是可取的,但我认为我仍然指出它们。
While I have never done this myself, the VS Code docs seem to suggest that you can have launch setting which are scoped outside of your project:
The docs also seem to suggest that VS Code might have a mechanism for wider scoped tasks through a "Task Provider":
I realise an answer from someone who has actually used these features would be preferable, but I thought I'd point them out nonetheless.