Set IntelliSense mode to gcc-x64.

本文介绍了如何将Visual Studio Code的IntelliSense设置为gcc-x64模式,以适应Mingw-w64环境。通过修改.c_cpp_properties.json文件中的includePath、compilerPath和intelliSenseMode等配置,确保能正确识别不在工作区或标准库路径中的头文件。
摘要由CSDN通过智能技术生成

You only need to modify the Include path setting if your program includes header files that are not in your workspace or in the standard library path.

Visual Studio code places these settings in .vscode/c_cpp_properties.json. If you open that file directly, it should look like this (depending on your specific Mingw-w64 path):

{
“configurations”: [
{
“name”: “Win32”,
“includePath”: [
w o r k s p a c e F o l d e r / ∗ ∗ " , " {workspaceFolder}/**", " workspaceFolder/","{vcpkgRoot}/x86-windows/include”
],
“defines”: [
“_DEBUG”,
“UNICODE”,
“_UNICODE”
],
“windowsSdkVersion”: “10.0.17763.0”,
“compilerPath”: “C:\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin\g++.exe”,
“cStandard”: “c11”,
“cppStandard”: “c++17”,
“intelliSenseMode”: “${default}”
}
],
“version”: 4
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值