1.18.3
Instructions
Install it via using the Extensions view in VS Code or download a vsix that matches your OS from Assets section below (or the "Download" dropdown in the "Version History" tab section on the Marketplace website) and then use the Extensions: Install from VSIX...
command in VS Code (don't double-click the vsix or another app like VS might try to open it incorrectly).
Requirements
- VS Code 1.67.0 or later.
Changes
New Features
- Add an 'Extract to function' (or member function) code action after selecting code. #1162
- Compiler acquisition improvements. #10525
- Provide
Add '#include'
code action suggestions for IntelliSense errors related to symbols not being found. #10791
Enhancements
- Add keyboard support for 'Inline Macro'. #11260
- Add setting
C_Cpp.refactoring.includeHeader
to customize whether or not to add an include header when doing a refactoring code action. #11271 - Improve the walkthrough wording. #11320
- Update clang-format and clang-tidy to 17. PR #11491
- Add a pre-release available notification. PR #11569
Bug Fixes
- Fix the debugger truncating long strings when inspecting values. #1786
- Switch to using
XDG_CACHE_HOME
on Linux for the default database path. #10191 - Fix an IntelliSense error with std::is_trivially_copyable_v. #10712
- Fix incorrect status and commands with the tag parsing language status UI. #10749
- Fix an empty (
""
)compilerPath
in a base configuration overriding the compiler specified by a custom configuration provider or acompile_commands.json
. #11373 - Fix a startup crash when reading values from JSON (settings) that are not the type expected. #11375
- Fix a crash detected by crash telemetry. #11401
- Fix handling of an undefined
env
variable on Linux and macOS. #11447 - Fix multiple issues with querying
nvcc
(CUDA) as a compiler. #11454 - Fix an IntelliSense crash when hovering over an invalid array index expression. #11510
- Fix an issue that could cause a C language standard to be applied to a C++ file, or vice versa.
- Remove
cpp
andclang-cpp
preprocessors from the list of detectable compilers. - Fix an autocomplete crash bug (primarily on Mac).
Known Issue
- The extension sometimes failing to activate with VS Code versions less than 1.18. #11680