Skip to content

Update C++ TOC and update settings links #8334

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/cpp/configure-intellisense-crosscompilation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,5 @@ Given the settings above, your `c_cpp_configuration.json` file will look somethi

- For more information about IntelliSense configuration, see [Customizing default settings](/docs/cpp/customize-default-settings-cpp.md).
- If you have trouble configuring the settings, please start a discussion at [GitHub discussions](https://github.com/microsoft/vscode-cpptools/discussions), or if you find an issue that needs to be fixed, file an issue at [GitHub issues](https://github.com/microsoft/vscode-cpptools/issues).
- Explore the [c_cpp_properties schema](/docs/cpp/c-cpp-properties-schema-reference.md).
- Explore the [c_cpp_properties schema](/docs/cpp/customize-cpp-settings.md).
- Review the [Overview of the C++ extension](/docs/languages/cpp.md).
6 changes: 3 additions & 3 deletions docs/cpp/configure-intellisense.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ If you don't have IntelliSense configured, the C/C++ extension shows a yellow in

To configure, select the status bar indicator, which brings up the [configuration Quick Pick](#option-1-select-a-configuration-option-through-the-configuration-quick-pick). The Quick Pick can help you select or install a C/C++ compiler.

If you do not see a status bar indicator, you can also check your project's `c_cpp_properties.json` file. This file stores all of your IntelliSense configuration settings. Navigate to this file by selecting **C/C++: Edit Configurations (UI)** from the Command Palette (`kb(workbench.action.showCommands)`). Check the `IntelliSense mode` to find your configuration. To learn more about the `c_cpp_properties.json` file, you can review the [schema reference](/docs/cpp/c-cpp-properties-schema-reference.md).
If you do not see a status bar indicator, you can also check your project's `c_cpp_properties.json` file. This file stores all of your IntelliSense configuration settings. Navigate to this file by selecting **C/C++: Edit Configurations (UI)** from the Command Palette (`kb(workbench.action.showCommands)`). Check the `IntelliSense mode` to find your configuration. To learn more about the `c_cpp_properties.json` file, you can review the [schema reference](/docs/cpp/customize-cpp-settings.md).

![Command Palette filtered on C/C++ Edit Configurations command](images/intellisense/edit-configurations-ui.png)

Expand Down Expand Up @@ -59,7 +59,7 @@ You can edit the `c_cpp_properties.json` file directly to customize your configu

Use the `compilerPath` variable to add a compiler. This variable is the full path of the compiler you're using to build your project. For example, when using the default install path for GCC on Linux, the compiler path is `/usr/bin/gcc`.

For more information about the `c_cpp_properties.json` file, review the [schema reference](/docs/cpp/c-cpp-properties-schema-reference.md).
For more information about the `c_cpp_properties.json` file, review the [schema reference](/docs/cpp/customize-cpp-settings.md).

Select the sample below based on your operating system for a `c_cpp_configuration.json` file:

Expand Down Expand Up @@ -203,5 +203,5 @@ You can select the pin icon on the right of any item in the language status bar

* For more information about IntelliSense configuration, see [Customizing default settings](/docs/cpp/customize-default-settings-cpp.md).
* If you have trouble configuring the settings, please start a discussion at [GitHub discussions](https://github.com/microsoft/vscode-cpptools/discussions), or if you find an issue that needs to be fixed, file an issue at [GitHub issues](https://github.com/microsoft/vscode-cpptools/issues).
* Explore the [c_cpp_properties schema](/docs/cpp/c-cpp-properties-schema-reference.md).
* Explore the [c_cpp_properties schema](/docs/cpp/customize-cpp-settings.md).
* Review the [Overview of the C++ extension](/docs/languages/cpp.md).
2 changes: 1 addition & 1 deletion docs/cpp/customize-default-settings-cpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Note that for the properties that accept string[], the syntax proposed above all

If a property is missing from `c_cpp_properties.json`, the extension will use the value in the VS Code setting. If a developer assigns values to all of the settings that apply for a given folder, then `c_cpp_properties.json` could be removed from the .vscode folder as it will no longer be needed.

For in-depth information about the c_cpp_properties.json settings file, See [c_cpp_properties.json reference](/docs/cpp/c-cpp-properties-schema-reference.md).
For in-depth information about the c_cpp_properties.json settings file, See [c_cpp_properties.json reference](/docs/cpp/customize-cpp-settings.md).

### System includes

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
38 changes: 28 additions & 10 deletions docs/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -269,17 +269,35 @@
"area": "cpp",
"topics": [
["Intro Videos", "/docs/cpp/introvideos-cpp"],
["GCC on Linux", "/docs/cpp/config-linux"],
["GCC on Windows", "/docs/cpp/config-mingw"],
["GCC on Windows Subsystem for Linux", "/docs/cpp/config-wsl"],
["Clang on macOS", "/docs/cpp/config-clang-mac"],
["Microsoft C++ on Windows", "/docs/cpp/config-msvc"],
["Build with CMake", "/docs/cpp/build-with-cmake"],
["CMake Tools on Linux", "/docs/cpp/cmake-linux"],
["CMake Quick Start", "/docs/cpp/cmake-quickstart"],
["", "", {
"name": "Getting Started",
"area": "cpp/gettingstarted",
"topics": [
["GCC on Linux", "/docs/cpp/gettingstarted/config-linux"],
["GCC on Windows", "/docs/cpp/gettingstarted/config-mingw"],
["GCC on Windows Subsystem for Linux", "/docs/cpp/gettingstarted/config-wsl"],
["Clang on macOS", "/docs/cpp/gettingstarted/config-clang-mac"],
["Microsoft C++ on Windows", "/docs/cpp/gettingstarted/config-msvc"]
]
}],
["", "", {
"name": "Build with CMake",
"area": "cpp/cmake",
"topics": [
["CMake Quick Start", "/docs/cpp/cmake/cmake-quickstart"],
["Build with CMake", "/docs/cpp/cmake/build-with-cmake"],
["CMake Tools on Linux", "/docs/cmake/cpp/cmake-linux"]
]
}],
["Editing and Navigating", "/docs/cpp/cpp-ide"],
["Debugging", "/docs/cpp/cpp-debug"],
["Configure Debugging", "/docs/cpp/launch-json-reference"],
["", "", {
"name": "Debugging",
"area": "cpp/debugging",
"topics": [
["Debugging", "/docs/cpp/debugging/cpp-debug"],
["Configure Debugging", "/docs/cpp/debugging/launch-json-reference"],
]
}],
["Refactoring", "/docs/cpp/cpp-refactoring"],
["Settings", "/docs/cpp/customize-default-settings-cpp"],
["Configure IntelliSense", "/docs/cpp/configure-intellisense"],
Expand Down