码迷,mamicode.com
首页 > 其他好文 > 详细

VS code

时间:2017-11-20 21:56:02      阅读:304      评论:0      收藏:0      [点我收藏+]

标签:define   自己   its   pre   work   使用   文件   hello   framework   

这两天安装了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

标签:define   自己   its   pre   work   使用   文件   hello   framework   

原文地址:http://www.cnblogs.com/startnow/p/7868003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!