Comments (3)
There is also Format document on Save extension by @mynkow.
from vs-ppt.
I'm also missing these features on save. I'm so used to it that it costs me additional steps:
CTRL+S
[oh, I forgot...]
CTRL+K, E
CTRL+S again
from vs-ppt.
same, this is one of my most-used features
edit: looks like they now officially recommend the Code Cleanup On Save extension for this feature: https://docs.microsoft.com/en-us/visualstudio/ide/code-styles-and-code-cleanup?view=vs-2022. See bottom of the page before "See also".
Found a workaround for the Remove and Sort Usings on save. Seems you can't add Sort usings and Remove unnecessary usings. Saving will automatically remove them. This however isn't the case for the other options.
- Go to Analyze -> Code Cleanup -> Configure Code Cleanup
- Select Profile 1 (default)
- Remove all included fixers
- Press OK
- Open Configure Code Cleanup again
- Add all fixers you want (sort usings/imports, remove usings/imports, format document, apply file header preferences, etc).
- Press OK
- Open Configure Code Cleanup again
- All added fixers are saved, except for the 2 usings fixers.
- Press OK
- Add an unused using on an unsorted line
- Press ctrl+s
- Unused using is now removed and usings are sorted
from vs-ppt.
Related Issues (20)
- shrink empty lines causes.. jittering? HOT 2
- Peek Help default binding ALT+F1 conflicts with Visual Studio
- Copy As Html 2022: BeforeCodeSnippet and AfterCodeSnippet options not being honored HOT 12
- Where is the src code for Align Assignments HOT 1
- Time Stamp Margin doesn't work on Visual Studio 2019
- Copy as HTML 2022: Performance issue
- Copy As Html 2022: Copying from dark theme HOT 4
- Peek Help - Browser no longer supported HOT 7
- Copy As Html stops copy and cut operation in Visual Studio 2017 and 2019. HOT 1
- "Format document on save" incompatible with SA1000 HOT 1
- add AutoHistory to PPT 2022
- Align method arguments
- [Middle-Click Scroll] Feature request: option to disable middle-click
- IWaitIndicator HOT 2
- Background downloading
- This repo is missing important files
- Arm64
- "Copy as HTML 2022" is broken in 17.9p2 HOT 1
- Copy As Html doesn't copy C# or F# colour HOT 12
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 vs-ppt.