Comments (9)
Yes, after closing all open .cs files the auto format on save is working well!
Thanks a lot for the hint!
This is definitely much easier than reinstalling VS :D
from codemaid.
Thanks for the tip. This will work if nothing else helps. But that can't be the way to solve this problem. Completely uninstalling Visual Studio is very time-consuming if you also want to have the many extensions back in the same individual configuration.
@illusion-walk I completely agree with your point. I just listed everything I tried. In fact, I had multiple re-installations of VS that just didn't help. Closing all open .cs files for a solution that had probably hundreds of them is what actually made it work, for me.
from codemaid.
Seeing the same issue on my machine using the same environment as OP
from codemaid.
I am seeing the same issue on my machine. Only difference from OP is that I am using Visual Studio Professional 2022 v17.7.2.
I can confirm that a different machine that is running Visual Studio Professional 2022 v17.6.4 IS working as expected.
from codemaid.
Same issue on my end too. Running CodeMaid in Diagnostics mode resulted in this message in the Output:
[CodeMaid Diagnostic 07:24:02 PM] WindowEventListener.OnWindowChange raised for 'C:*****\Application.cs'
Only explicit call to 'Cleanup Active Document' from the extension menu invokes CodeMaid.
Hope this helps.
Thanks!
UPDATE: Issue persists after latest update to VS 2022 Community 17.7.3
Re-installing CodeMaid didn't help
from codemaid.
Same issue on my machine
VS 2022 Community 17.7.2
C++ language
from codemaid.
This is my second update on the issue. Here is a list of steps that brought CodeMaid's cleanup-on-save back in the game for me:
- Uninstalled VS 2022
- Cleaned up any relevant app data I could find
- Cleaned up shared librares and other leftover files and folders under "Program Files" and "Program Files (x86)". Basically sweeped everything having "Microsoft\Visual Studio" or "VisualStudio" in its path
- Reinstalled VS2022
- Reinstalled CodeMaid
- As odd as it may sound, closed all open windows in a solution for which CodeMaid had stopped cleaning on save. The count might have been up to hundreds (did not check it explicitly) open files. The cleanup on save started working immediately after this step.
In my efforts to solve the case by myself, I cloned and debugged the CodeMaid.2022 project. It had issues that pointed to possible library version conflicts (there were "method not found" exceptions). This made me try re-installation with manual VS files cleanup. Once the debug started working, it turned out it nicely cleans on save some small test app projects with a couple of open source file windows. That's when I went for closing the windows in the bigger solution.
Hope this may help.
from codemaid.
Thanks for the tip. This will work if nothing else helps.
But that can't be the way to solve this problem. Completely uninstalling Visual Studio is very time-consuming if you also want to have the many extensions back in the same individual configuration.
from codemaid.
Related Issues (20)
- 格式化删除 `ref struct` 中的 `ref`关键字 HOT 3
- Add type-specific sorting definitions to the Reorganizing > Type page HOT 1
- Many Missing Declarations HOT 1
- `Find in Solution Explorer` command Collapses Solution Explorer instead HOT 2
- Spade + Code Cleanup crash on rename of base class while its derived class is open in an editor window
- 'Clean up Active Document' brakes preprocessor directive #if HOT 3
- #engregion tags are not getting name added to match #region tag HOT 1
- Include support for GRPC .proto files HOT 1
- Spade hangs Visual Studio if you switch between long files HOT 1
- [Bug] Inserting a space before a single line comment HOT 2
- ITextBuffer returns null for code file if designer window open HOT 1
- Support file encoding HOT 1
- # declarations should be aligned with usual code HOT 2
- Code Maid Visual 2022 - Making Tabs larger/Smaller than stated in Visual Studios native document formatting setting HOT 7
- SPADE not work on vs 17.7.5 HOT 2
- The keyword `file` will be changed to `internal`. HOT 2
- Remove space on end tags HOT 1
- Hello, I'm wondering if there are any plans to support Rider? HOT 1
- with VS 17.8 usings are not cleaned up anymore HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codemaid.