C
C#2mo ago
Alp

Code formatter

Is there a plugin similar to Prettier in vs 22 IDE ? or is there prettier itself
16 Replies
ACiDCA7
ACiDCA72mo ago
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
Alp
Alp2mo ago
Can I change these shortcut keybindings?
Pobiega
Pobiega2mo ago
yes
Alp
Alp2mo ago
Is there anyone who can guide?
ACiDCA7
ACiDCA72mo ago
tried looking into settings? oO
Alp
Alp2mo ago
I'm looking
Pobiega
Pobiega2mo ago
Tools -> Options -> Keyboard
Alp
Alp2mo ago
Thank you for your help
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
ACiDCA7
ACiDCA72mo ago
in case a ms employee reads this.,.. can codecleanup pls get some love?
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
ACiDCA7
ACiDCA72mo ago
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
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
ACiDCA7
ACiDCA72mo ago
great for you ;)
Unknown User
Unknown User2mo ago
Message Not Public
Sign In & Join Server To View
ACiDCA7
ACiDCA72mo ago
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
Want results from more Discord servers?
Add your server