VSFormatOnSave
VSFormatOnSave copied to clipboard
[VS2022] Format on save for CMake C++ project is working only after touching AutoSave setting
- Start Visual Studio
- Open CMake C++ project
- Try to change and save the file - Formatting doesn't work
- Open Tools -> Options -> Format on Save.
- Toggle 'AutoSaveOnDeativated' setting - it's initial value doesn't matter (and here is a typo in the setting name BTW)
- Try save the file - Formatting is working now
Microsoft Visual Studio Community 2022 Version 17.6.4 VisualStudio.17.Release/17.6.4+33815.320 Microsoft .NET Framework Version 4.8.09037
Installed Version: Community
Visual C++ 2022
Microsoft Visual C++ 2022
ASP.NET and Web Tools 17.6.326.62524 ASP.NET and Web Tools
Azure App Service Tools v3.0.0 17.6.326.62524 Azure App Service Tools v3.0.0
C# Tools 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Cookiecutter 17.0.23087.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format.
Linux Core Dump Debugging 1.0.9.33801 Enables debugging of Linux core dumps.
Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
NuGet Package Manager 6.6.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Python - Profiling support 17.0.23087.1 Profiling support for Python projects.
Python with Pylance 17.0.23087.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers.
Test Adapter for Boost.Test 1.0 Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0 Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 17.0.20329.2001 TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 4.6.0-3.23259.8+c3cc1d0ceeab1a65da0217e403851a1e8a30086a Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual C++ for Linux Development 1.0.9.33801 Visual C++ for Linux Development
Visual F# Tools 17.6.0-beta.23174.5+0207bea1afae48d9351ac26fb51afc8260de0a97 Microsoft Visual F# Tools
Visual Studio IntelliCode 2.2 AI-assisted development for Visual Studio.
i have the same issue since I updated to 17.7.2