Skip to content

Commit c430ed4

Browse files
authored
Update FAQ.md
1 parent a9d2543 commit c430ed4

File tree

1 file changed

+16
-0
lines changed
  • Documentation/LanguageServer

1 file changed

+16
-0
lines changed

Documentation/LanguageServer/FAQ.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
[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)?
88

9+
[How do I re-create the IntelliSense database](#how-do-i-re-create-the-intellisense-database)?
10+
911
## Why do I have red underlines everywhere after updating to the latest version?
1012

1113
If you are using the VS Code Insider build with version 0.11.0 or higher of the cpptools extension or any build of VS Code with version 0.11.1 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.
@@ -47,3 +49,17 @@ The paths that you specify for this setting are the same paths that you would se
4749
**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.
4850

4951
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.
52+
53+
## How do I re-create the IntelliSense database?
54+
55+
When you open a folder in VS Code, we will index and parse the files in your workspace and store the information in a database. If you suspect that something is wrong with the database and want to regenerate it, the easiest way to do this is to edit the `"browse.databaseFilename"` property in your **c_cpp_properties.json** file by just putting a new filename in there (e.g. `"mydatabase.db"`.
56+
57+
By default, the database is stored in the following folder:
58+
59+
```
60+
Windows: %APPDATA%\Code\User\workspaceStorage\<hash>\ms-vscode.cpptools\
61+
Linux: ~/.config/Code/User/workspaceStorage/<hash>/ms-vscode.cpptools/
62+
Mac: ~/Library/Application Support/Code/User/workspaceStorage/<hash>/ms-vscode.cpptools/
63+
```
64+
65+
If you want to move the database into your workspace's .vscode folder, you can do this by setting `"browse.databaseFilename"` to `"$[workspaceRoot}/.vscode/.browse.VC.db"`.

0 commit comments

Comments
 (0)