Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to choose C# solution file in VS Code

In VS Code, if I open a folder hierarchy that contains multiple C# solutions, sometimes I have very spotty formatting and intellisense functionality (formatting doesn’t respect my .editorconfig file, I can’t go to definition for methods, etc.).

The other day I noticed that I had a notification visible prompting me to select a solution file – once I did this, I had a better experience.
enter image description here

Clicking that lets me then pick one of the .sln files it found:
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

However, this notification doesn’t always appear, and I haven’t been able to find out how to initiate this on demand. When I search for the keywords like "choose" or "solution" in the command palette, I’m getting nothing useful. Is there a command to initiate this?

>Solution :

Try "open" or "solution" in the command palette ([Ctrl]+[Shift]+[P]):

enter image description here

This will give you:

enter image description here

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading