Skip to content

Commit f76ed24

Browse files
authored
Merge pull request MicrosoftDocs#2429 from mikeblome/mb-cppprops
updated open folder to mention gitignore
2 parents 7ccc8df + 5fc434d commit f76ed24

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/build/open-folder-projects-cpp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: "Open Folder support for C++ build systems in Visual Studio"
3-
ms.date: "08/20/2019"
3+
ms.date: "10/21/2019"
44
helpviewer_keywords: ["Open Folder Projects in Visual Studio"]
55
ms.assetid: abd1985e-3717-4338-9e80-869db5435175
66
---
@@ -68,6 +68,9 @@ If, for example, you choose **x64-Debug**, Visual Studio creates a file called *
6868

6969
This configuration "inherits" the environment variables of the Visual Studio [x64 Developer Command Prompt](building-on-the-command-line.md). One of those variables is `INCLUDE` and you can refer to it here by using the `${env.INCLUDE}` macro. The `includePath` property tells Visual Studio where to look for all the sources that it needs for IntelliSense. In this case, it says "look in the all the directories specified by the INCLUDE environment variable, and also all the directories in the current working folder tree." The `name` property is the name that will appear in the dropdown, and can be anything you like. The `defines` property provides hints to IntelliSense when it encounters conditional compilation blocks. The `intelliSenseMode` property provides some additional hints based on the compiler type. Several options are available for MSVC, GCC, and Clang.
7070

71+
> [!NOTE]
72+
> If Visual Studio seems to be ignoring settings in *CppProperties.json*, try adding an exception to your *.gitignore* file like this: `!/CppProperties.json`.
73+
7174
## Example configuration for GCC
7275

7376
If you are using a compiler other than Microsoft C++, you have to create a custom configuration and environment in *CppProperties.json*. The following example shows a complete *CppProperties.json* file with a single custom configuration for using GCC in an MSYS2 installation:

0 commit comments

Comments
 (0)