fernandoescolar / vscode-solution-explorer

This is a Visual Studio Code extension that provides a (.sln) Visual Studio Solution explorer panel..
MIT License
350 stars 73 forks source link

"Set as startup project" functionality #200

Open callummarshall9 opened 2 years ago

callummarshall9 commented 2 years ago

In Visual Studio 2022 when you're working with multiple projects you can set a project as a startup project

When working in VSCode it seems the Microsoft documented way is to edit a .vscode/launch.json which isn't something I'm particularly proficient at... Especially as I may potentially have multiple startup projects that are also Azure functions that Microsoft seem to document as "multi-root workspaces" even though my solution contains multiple Azure functions.

It would be ideal if the extension at least for simple console projects would let me "Right click -> Set as Startup Project" for at least one project... A multi-run configuration may prove more work. This could perhaps work through the extension storing launch.json templates based on the project type and can also read the existing properties properties/launchSettings.json to help populate this information.

The alternative it seems that I'm currently having to do it seems is write .vscode/launch.json files often relying on multiple tutorials I've found online or having to generate new .NET projects in VSCode just to steal their launch configuration.

This would save me a lot of time in VSCode.

nepgituser commented 1 year ago

Hello. I would like this functionality as well. I've searched around and haven't found a way to do it from the terminal. As a stop gap measure, are you aware of a way to do it from the terminal? Thank you!

Also, "Setup Project" #263 is a duplicate of this.