Formatting Code?
Hi!
I am new here and I use Resharper just since a week.
I am wondering about Code Formatting. Without Resharper when I write in VS and I click Enter or Tab, VS changes variables names, keywords (If, While, etc) to match correct name....for example if-->If while-->While or if I have a variable called 'myVariable' and I write 'MYVARIABLE', VS changes it to 'myVariable'.
After installing ReSharper the IDE doesn't change it for me, what I am hating because my Code looks not nice.
Is there a way to fix that? It must be a way since this way slows my development, and that's the opposite purpose of ReSharper.
I'm sure I have to change some Option but I cannot find which one.
I hope you can understand my problem and I apologize for my bad English...
Thanks in advance :)
Please sign in to leave a comment.
F
I assume that you are working with Visual Basic. MYVARIABLE isn't changed because R# intellisense respects casing. If you wrote "myvariable" it would be correctly changed to "myVariable". Regarding the casing of keywords it seems that R# have some problems. It tried it in a small project and sometimes the keyword case was changed (for example If, Function, String...) and sometimes not (for example return).
R# disables the automatic code reformatting feature of VB (Tools/Options/Text Editor/Basic/Advanced -> Pretty listing (reformatting) of code). If you enable this option your editor experience should be as expected.
Regards
Andreas