You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/overview/what-s-new-for-visual-cpp-in-visual-studio.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,7 +62,7 @@ A quick highlight of some of the new features:
62
62
|---|---|
63
63
| What's new for C++ developers |[What's New for C++ Developers in Visual Studio 2022 17.13](https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2022-17-13/)|
64
64
| Standard Library (STL) C++26 and C++23 features, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.13](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1713)|
65
-
| New features in the IDE |[Visual Studio 2022 version 17.13 Release Notes](/visualstudio/releases/2022/release-notes)|
65
+
| New features in the IDE |[Visual Studio 2022 version 17.13 Release Notes](/visualstudio/releases/2022/release-notes-v17.13)|
66
66
| C++ language updates |[MSVC compiler updates in Visual Studio 2022 17.13](https://devblogs.microsoft.com/cppblog/msvc-compiler-updates-in-visual-studio-2022-version-17-13/)|
67
67
| C++ language conformance improvements |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022 17.13](cpp-conformance-improvements.md#improvements_1713)|
68
68
@@ -91,7 +91,7 @@ A quick highlight of some new features:
91
91
92
92
-**Standard Library enhancements**
93
93
94
-
- Standard library support for couroutines. In this example from [P2502R2](https://wg21.link/p2502r2), the `fib` function is a coroutine. When the `co_yield` statement is executed, `fib` is suspended and the value is returned to the caller. You can resume the `fib` coroutine later to produce more values without requiring any manual state handling:
94
+
- Standard library support for coroutines. In this example from [P2502R2](https://wg21.link/p2502r2), the `fib` function is a coroutine. When the `co_yield` statement is executed, `fib` is suspended and the value is returned to the caller. You can resume the `fib` coroutine later to produce more values without requiring any manual state handling:
95
95
96
96
```cpp
97
97
std::generator<int> fib()
@@ -107,7 +107,7 @@ A quick highlight of some new features:
107
107
int answer_to_the_universe()
108
108
{
109
109
auto rng = fib() | std::views::drop(6) | std::views::take(3);
- GitHub Copilot Edits is a new feature that can make changes across multiple files in your project. To start a new Edits session, click **Create new edit session** at the top of the GitHub Copilot Chat window:
144
144
@@ -163,7 +163,7 @@ A quick highlight of some new features:
163
163
|---|---|
164
164
| What's new for C++ developers |[What's New for C++ Developers in Visual Studio 2022 17.12](https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2022-17-12/)|
165
165
| Standard Library (STL) merged C++26 and C++23 features, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.12](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1712)|
166
-
| New features in the Visual Studio 17.12 IDE |[Visual Studio 2022 version 17.12 Release Notes](/visualstudio/releases/2022/release-notes)|
166
+
| New features in the Visual Studio 17.12 IDE |[Visual Studio 2022 version 17.12 Release Notes](/visualstudio/releases/2022/release-notes-v17.12)|
167
167
| C++ language conformance improvements in Visual Studio 2022 17.12 |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022 17.12](cpp-conformance-improvements.md#improvements_1712)|
168
168
169
169
A quick highlight of some of the new features:
@@ -211,8 +211,8 @@ A quick highlight of some of the new features:
211
211
| For more information about | See |
212
212
|---|---|
213
213
| What's new for C++ developers |[What's New for C++ Developers in Visual Studio 2022 17.11](https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2022-17-11/)|
214
-
| Standard Library (STL) merged C++26 and C++23 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.11](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1711)|
215
-
| New features in the Visual Studio 17.11 IDE |[Visual Studio 2022 version 17.11 Release Notes](/visualstudio/releases/2022/release-notes)|
214
+
| Standard Library (STL) merged C++26 and C++23 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.11](https://github.com/microsoft/STL/wiki/VS-2022-Changelog#vs-2022-1711)|
215
+
| New features in the Visual Studio 17.11 IDE |[Visual Studio 2022 version 17.11 Release Notes](/visualstudio/releases/2022/release-notes-v17.11)|
216
216
| C++ language conformance improvements in Visual Studio 2022 17.11 |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022 17.11](cpp-conformance-improvements.md#improvements_1711)|
217
217
218
218
A partial list of new features:
@@ -262,8 +262,8 @@ A partial list of new features:
262
262
| For more information about | See |
263
263
|---|---|
264
264
| What's new for C++ developers |[What's new for C++ Developers in Visual Studio 2022 17.10](https://devblogs.microsoft.com/cppblog/whats-new-for-c-developers-in-visual-studio-2022-17-10/)|
265
-
| Standard Library (STL) merged C++26 and C++23 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.10](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710)|
266
-
| New features in the Visual Studio 17.10 IDE |[Visual Studio 2022 version 17.10 Release Notes](/visualstudio/releases/2022/release-notes)|
265
+
| Standard Library (STL) merged C++26 and C++23 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.10](https://github.com/microsoft/STL/wiki/VS-2022-Changelog#vs-2022-1710)|
266
+
| New features in the Visual Studio 17.10 IDE |[Visual Studio 2022 version 17.10 Release Notes](/visualstudio/releases/2022/release-notes-v17.10)|
267
267
| C++ language conformance improvements in Visual Studio 2022 17.10 |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022 17.10](cpp-conformance-improvements.md#improvements_1710)|
268
268
269
269
A partial list of new features:
@@ -283,7 +283,7 @@ A partial list of new features:
283
283
:::image-end:::
284
284
-**Breakpoint/Tracepoint Creation**: You can now create conditional breakpoints or tracepoints directly from expressions in the source code from the right-click menu. This works on property or field names and values from autos, locals, watch windows, or DataTips.
285
285
-**Attach to Process Dialog**: The functionality provided by the Attach to Process dialog is more user-friendly. You can now easily switch between tree and list views, organize processes better with collapsible sections, and select code types with a simplified combobox. Also, the "Select/Track Window" feature is now easier to use, allowing two-way tracking: selecting a process highlights its window, and clicking on a window selects its process.
286
-
-**GitHub Copilot Integration**: GitHub Copilot and Copilot Chat extensions are now unified and now ship directly in Visual Studio. To install it, install the **GitHub Copilot** component in the **Visual Studio Installer**:
286
+
-**GitHub Copilot Integration**: GitHub Copilot and Copilot Chat extensions are now unified and ship directly in Visual Studio. To install it, install the **GitHub Copilot** component in the **Visual Studio Installer**:
287
287
:::image type="complex" source="media/github-copilot-install-option.png" alt-text="Screenshot of the Visual Studio Installer GitHub Copilot installation option." lightbox="media/github-copilot-install-option-expanded.png":::
288
288
The Visual Studio installer is open to the Workloads tab. In the installation details pane, GitHub Copilot is shown as selected.
289
289
:::image-end:::
@@ -347,7 +347,7 @@ A partial list of new features:
347
347
- More Unreal Engine support:
348
348
- Unreal Engine Test Adapter lets you discover, run, manage, and debug your Unreal Engine tests without leaving the Visual Studio IDE.
349
349
- With Unreal Engine Code Snippets, you can find common Unreal Engine constructs as snippets in your member list.
350
-
- Build Insights is now integrated with Visual Studio 2022 and works with MSBuild and CMake projects using MSVC. You can now see additional information about the compilation of a function such as how long it took to compile and the number of ForceInlines, and the impact of header files on build time. For more information, see [Tutorial: Troubleshoot function inlining on build time](../build-insights/tutorials/build-insights-function-view.md) and [Tutorial: Troubleshoot header file impact on build time](../build-insights/tutorials/build-insights-included-files-view.md).
350
+
- Build Insights is now integrated with Visual Studio 2022 and works with MSBuild and CMake projects using MSVC. You can now see additional information about the compilation of a function such as how long it took to compile, the number of ForceInlines, and the impact of header files on build time. For more information, see [Tutorial: Troubleshoot function inlining on build time](../build-insights/tutorials/build-insights-function-view.md) and [Tutorial: Troubleshoot header file impact on build time](../build-insights/tutorials/build-insights-included-files-view.md).
351
351
- Remote Linux unit test support now lets you run your CTest and GTest tests on your remote Linux machines from Visual Studio's Test Explorer, just like your local tests.
352
352
353
353
## What's new for C++ in Visual Studio version 17.7
@@ -402,7 +402,7 @@ A partial list of new features includes:
402
402
403
403
A partial list of new features includes:
404
404
405
-
-`std::move`, `std::forward`, `std::move_if_noexcept`, and `std::forward_like` now don't produce function calls in generated code, even in debug mode. This change avoids named casts causing unnecessary overhead in debug builds. `/permissive-` (or an option that implies it, such as `/std:c++20` or `std:c++latest`) is required.
405
+
-`std::move`, `std::forward`, `std::move_if_noexcept`, and `std::forward_like` now don't produce function calls in generated code, even in debug mode. This change avoids named casts causing unnecessary overhead in debug builds. `/permissive-` (or an option that implies it, such as `/std:c++20` or `/std:c++latest`) is required.
406
406
- Added [`[[msvc::intrinsic]]`](../cpp/attributes.md#msvcintrinsic). You can apply this attribute to nonrecursive functions consisting of a single cast, which take only one parameter.
407
407
- Added support for Linux Console in the Integrated Terminal, which allows for terminal I/O.
408
408
- Added initial experimental support for C11 atomic primitives (`<stdatomic.h>`). You can enable this experimental feature with the `/experimental:c11atomics` option in `/std:c11` mode or later.
@@ -468,7 +468,7 @@ A partial list of new features in 17.4:
468
468
469
469
(The compiler part isn't implemented yet. The library part was implemented in C++20 mode when Ranges support was initially implemented.)
@@ -484,7 +484,7 @@ A partial list of new features in 17.4:
484
484
485
485
| For more information about | See |
486
486
|---|---|
487
-
| What's new for C++ developers |[C++ improvements in 17.3](https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-3-is-now-available/#c-improvements)|
487
+
| What's new for C++ developers |[C++ improvements in 17.3](https://devblogs.microsoft.com/visualstudio/visual-studio-2022-17-3-is-now-available/#c++-improvements)|
488
488
| Standard Library (STL) merged C++23 features, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.3](https://github.com/microsoft/STL/wiki/VS-2022-Changelog#vs-2022-173)|
489
489
| New features in the Visual Studio 17.3 IDE |[Visual Studio 2022 version 17.3 Release Notes](/visualstudio/releases/2022/release-notes-v17.3)|
490
490
| C++ language conformance improvements in Visual Studio 2022 17.3 |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022](cpp-conformance-improvements.md#improvements_173)|
@@ -527,7 +527,7 @@ A partial list of new features in 17.2:
527
527
- When you double-click an RTOS object in the tool window, it adds a watch for the object.
528
528
- When you select the start and end values for the stack pointer in the RTOS tool window, it opens in the memory window.
529
529
- Added thread awareness for device targets to the call stack window.
530
-
- Users can now select a pin icon next to peripherals, registers, or fields to pin them the top of the Peripheral View.
530
+
- Users can now select a pin icon next to peripherals, registers, or fields to pin them to the top of the Peripheral View.
531
531
- Added implementations of the remaining C++20 defect reports (also known as *backports*). All C++20 features are now available under the **`/std:c++20`** option. For more information about the implemented backports, see the [VS 2022 Changelog](https://github.com/microsoft/STL/wiki/VS-2022-Changelog#vs-2022-172) in the Microsoft/STL GitHub repository and the [MSVC's STL Completes `/std:c++20`](https://devblogs.microsoft.com/cppblog/msvcs-stl-completes-stdc20/) blog post.
532
532
- We added various C++23 Library features, available under the **`/std:c++latest`** option. For more information about the new features, see the [STL Repo changelog](https://github.com/microsoft/STL/wiki/Changelog).
533
533
- Improved performance of the initial C++ indexing by up to 20%, depending on the depth of the include graph.
@@ -559,7 +559,7 @@ A partial list of new features in 17.1:
559
559
| For more information about | See |
560
560
|---|---|
561
561
| New features in the Visual Studio 17.0 IDE |[Visual Studio 2022 version 17.0 Release Notes](/visualstudio/releases/2022/release-notes-v17.0)|
562
-
| Standard Library (STL) merged C++23 and C++26 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.0](https://github.com/microsoft/STL/wiki/Changelog#vs-2022-1710)|
562
+
| Standard Library (STL) merged C++23 and C++26 features, C++20 defect reports, Language Working Group (LWG) issue resolutions, performance improvements, enhanced behavior, and fixed bugs |[STL Changelog 17.0](https://github.com/microsoft/STL/wiki/VS-2022-Changelog#vs-2022-170)|
563
563
| C++ language conformance improvements in Visual Studio 2022 17.0 |[C++ Conformance improvements, behavior changes, and bug fixes in Visual Studio 2022 17.10](cpp-conformance-improvements.md#improvements_170)|
564
564
565
565
An overview of some of the new features in Visual Studio 2022 version 17.0:
0 commit comments