美文网首页
vscode中json文件的写法

vscode中json文件的写法

作者: they远去人海 | 来源:发表于2017-11-28 13:47 被阅读0次

在windows下的vscode中json文件写路径时,可以使用/,也可以使用\\,例如:

"miDebuggerPath":"D:/mingw64/bin/gdb.exe"

也可以写成:

"miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe"

还有,在写c时,显示cannot open source stdio.h等类似问题时,就要修改c_cpp_properties.json这个文件,点击有问题的那一行,然后会出现一个小灯泡,然后点击小灯泡,选择edit c_cpp_properties.json,就可以更改c_cpp_properties.json这个文件了。

修改如图所示的位置

相关文章

网友评论

      本文标题:vscode中json文件的写法

      本文链接:https://www.haomeiwen.com/subject/togsbxtx.html