Code formatter
Is there a plugin similar to Prettier in vs 22 IDE ?
or is there prettier itself
16 Replies
there is document format (ctrl+k+d) which is simple format and codecleanup (ctrl+k+e) which you can configure what and how it should format your code
Can I change these shortcut keybindings?
yes
Is there anyone who can guide?
tried looking into settings? oO
I'm looking
Tools -> Options -> Keyboard
Thank you for your help
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
in case a ms employee reads this.,..
can codecleanup pls get some love?
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
im not saying that it doesnt work, just that it could deserve some more love... did you ever open the configure code cleanup dialog?
its atrocious UX wise.
-why only exactly 2 profiles?
-the list where you have to move item by item in a vertical split window
-rules not being quite clear (eg will it take editorconfig settings or VS settings?)
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
great for you ;)
Unknown User•3mo ago
Message Not Public
Sign In & Join Server To View
yea im on your side here, but as an additional step not as the only step.
i would like to have a easy way to have formatting/fixing inside VS aswell
you sometimes learn how to do stuff better aswell when VS recommends you other ways or how to do it with the new language features. and instead of pushing it to just pull it again with the fixed formating is pretty annoying
also dotnet format seems to ignore some settings in editorconfig
eg multiple blank lines