Weird VS Code formatting when refactoring

This is a question about VS code (v1.55.2 on windows)- Whenever I use “extract method” or “generate method” I end up with really weird spacing, although technically it is still works. Not sure if this can be fixed in settings, or maybe it’s an issue with omnisharp but it happens whether or not there are spaces or tabs on the lines beforehand.

Hi,

That’s indeed strange.

Could you test this, please?

Figured it out! Turns it out it was all my fault. I was previously having problems with Omnisharp so I had changed my omnisharp.json file and then forgot to change it back once I got it working. Thanks

I’m glad you found the problem and solved it. Thanks for sharing your solution here. I’m sure it’ll help future students. :slight_smile:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms