VS code
Posted code -ss
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了VS code相关的知识,希望对你有一定的参考价值。
这两天安装了vs code 使用了几次感觉非常不错,智能.
windows 10 64位.
比如我自己在电脑安装了cygwin
我想用vs编写c程序,首先在vs下面打开一个文件夹,
新建一个Hello.c的文件, 编辑器会提示你找不到.h文件,这时候根据提示信息,点击小灯泡.
会在当前文件夹创建一个配置文件夹,会有下面这个文件. 配置win32节点,把左右include文件夹放进去. 就能自动提示了. 非常方便.
c_cpp_properties.json
{ "configurations": [ { "name": "Mac", "includePath": [ "/usr/include", "/usr/local/include", "${workspaceRoot}" ], "defines": [], "intelliSenseMode": "clang-x64", "browse": { "path": [ "/usr/include", "/usr/local/include", "${workspaceRoot}" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" }, "macFrameworkPath": [ "/System/Library/Frameworks", "/Library/Frameworks" ] }, { "name": "Linux", "includePath": [ "/usr/include", "/usr/local/include", "${workspaceRoot}" ], "defines": [], "intelliSenseMode": "clang-x64", "browse": { "path": [ "/usr/include", "/usr/local/include", "${workspaceRoot}" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" } }, { "name": "Win32", "includePath": [ "E:/Cygwin/usr/include", "E:/cygwin/lib/gcc/i686-pc-cygwin/6.4.0/include", "E:/cygwin/lib/gcc/i686-pc-cygwin/6.4.0/install-tools/include", "${workspaceRoot}" ], "defines": [ "_DEBUG", "UNICODE" ], "intelliSenseMode": "msvc-x64", "browse": { "path": [ "E:/Cygwin/usr/include", "E:/cygwin/lib/gcc/i686-pc-cygwin/6.4.0/include", "E:/cygwin/lib/gcc/i686-pc-cygwin/6.4.0/install-tools/include", "${workspaceRoot}" ], "limitSymbolsToIncludedHeaders": true, "databaseFilename": "" } } ], "version": 3 }
如何调试,还没实验.
以上是关于VS code的主要内容,如果未能解决你的问题,请参考以下文章