Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb5d3b1e

Browse files
authored
Merge pull requestmicrosoft#754 from Microsoft/bobbrow-faq
Update FAQ.md
2 parents64dd497 +c3fc02c commitb5d3b1e

File tree

1 file changed

+27
-1
lines changed
  • Documentation/LanguageServer

1 file changed

+27
-1
lines changed

‎Documentation/LanguageServer/FAQ.md‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
#Frequently asked questions
22

3+
[Why do I have red underlines everywhere after updating to the latest version](#why-do-i-have-red-underlines-everywhere-after-updating-to-the latest-version)?
4+
5+
[What is the difference between "includePath" and "browse.path" in c\_cpp\_properties.json](#what-is-the-difference-between-includepath-and-browsepath-in-c_cpp_propertiesjson)?
6+
7+
##Why do I have red underlines everywhere after updating to the latest version?
8+
9+
If you are using the VS Code Insider build with version 0.11.0 of the cpptools extension or any build of VS Code with version 0.11.1 or higher of the extension, then the extension will default to using the new IntelliSense engine for linting and providing quick info tooltips in your source files.
10+
11+
For some users this may result in a large number of red underlines ("squiggles") appearing in your source files. There are a few things you can do to resolve this issue. Select the one that best meets your needs for your situation.
12+
13+
1. Update your includePath and defines
14+
2. Disable the error squiggles
15+
3. Disable the new IntelliSense engine
16+
17+
####Update your includePath and defines
18+
19+
If you haven't already created a c_cpp_properties.json file for your project, you can do so by selecting "C/Cpp: Edit Configurations" from the command palette. This will create and open the c_cpp_properties.json file for you. Add the necessary paths to your include files to the`"includePath"` array. The`${workspaceRoot}` variable is available to use to get a relative path to the folder you have opened. Also add any required symbols that need to be defined to the`"defines"` array. Both "\<var\>" and "\<var\>=\<value\>" syntax is accepted. When you edit and save this file, the IntelliSense engine will reset and reparse source your source files and headers with the new settings.
20+
21+
####Disable the error squiggles
22+
23+
If you want to keep using the semantic-aware features that will be coming online via the new IntelliSense engine, but don't want to see the error squiggles in the editor, then you can disable the lint messages by adding`"errorSquiggles": "Disabled"` to your settings.json file.
24+
25+
####Disable the new IntelliSense engine
26+
27+
If you were happy with the old behavior of the extension or want to wait to get the semantic-aware features until build system support arrives in the extension so that you don't have to manually configure a c_cpp_properties.json file, you can disable the new IntelliSense engine entirely by adding`"intelliSenseEngine": "Tag Parser"` to your settings.json file.
28+
329
##What is the difference between "includePath" and "browse.path" in c\_cpp\_properties.json?
430

531
Starting with version 0.11.0 of the cpptools extension, there are now two settings in the c\_cpp\_properties.json file. They are used by the different IntelliSense engines that we support and have slightly different meanings for the components that use them.
@@ -14,4 +40,4 @@ The paths that you specify for this setting are the same paths that you would se
1440

1541
**browse.path**: This array of path strings is used by the "Tag Parser" (a.k.a. "browse engine"). This engine will_recursively_ enumerate all files under the paths specified and track them as potential includes while tag parsing your project folder. To disable recursive enumeration of a path, you can append a`/*` to the path string.
1642

17-
The extension will also implicitly add`${workspaceRoot}` to the array of paths unless`"C_Cpp.addWorkspaceRootToIncludePath"` is explicitly set to`false` in your settings.json file.
43+
The extension will also implicitly add`${workspaceRoot}` to the array of paths unless`"C_Cpp.addWorkspaceRootToIncludePath"` is explicitly set to`false` in your settings.json file.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp