VS: Is there a way to open one or specific scripts at a time, instead of the entire solution?

Maybe a dumb question, but I’ve been opening visual studio as an entire solution for years.

Is there a way to only open specific scripts instead of the entire solution?

Well, keep the solution open. :wink:
You are going to need it again soon. If you have memory issues, get more RAM if possible.

You can also assign VS Code or even Notepad++ or some other plain basic text editor as the script editor if you do little to no coding/debugging.

Lastly, you can make an editor script that adds a right click context menu item to launch the selected object in the editor of your choice.

The easiest way would be with a [MenuItem] which may seem counterintuitive at first because it sits in the menu. But you can assign a keyboard shortcut to it to make it readily available, and it acts on Selection.activeObject (check its type first) and then you have AssetDatabase.OpenAsset which means it will open the associated app eg a png may be opened in Photoshop or ImageViewer depending on your OS default app settings.

1 Like

Did you try double clicking on a script in your assets folder to see if it opens alone in VS?

@CodeSmile has you pretty much covered.

If you’re wondering how to change it… here’s is the unity learn lesson for it:

(this is for the default editor… their suggestion about a contextmenu is just a bonus way to have multiple custom choices at your fingertips)

1 Like