C
C#3mo ago
Alp

Code formatter

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