How to set up Visual Studio 2019 with Unity?
Asked Answered
P

2

0

Hello! first i have to say I’m a beginner so i hope don’t sound dumy with this question.

I just installed Visual Studio 2019 and Unity but i don’t know how to set it up to use it in Unity.
I just went trough EditPreferencesExternalTools and select Microsoft Visual Studio 2019 as the the External Script Editor.
I also Checked all the boxes of the Generate .csproj file for: section.

I wanna know if there is something else that i have to do or something that I’m missing?

Permanency answered 9/7, 2023 at 5:14 Comment(0)
T
0

Did you install the “Game Development with Unity” Extension when installing Visual Studio?

You can check by opening Visual Studio

Tools > Get Tools and Features…

Search for the “Game Development with Unity” Workload and install it.

After that do the things you described in your post again and you should be ready to go.

To use Visual Studio you just create a Script by right-clicking in the Project Window and selecting Script.
You can then name your script and can then press Enter after you’re done.

After double clicking the Script Visual Studio should open up where you can edit your script.

Have fun Scripting ^^

Talion answered 9/7, 2023 at 11:26 Comment(1)

Hi!, sorry for the late reply. Yes i installed the “Game Development with Unity” Extension for Visual Studio and as you said i double clicking the script and the text editor showed up! Thank you for your help!

Permanency
R
0

In case your Visual Studio does not auto complete stuff for you, follow the following steps:

  1. Open Visual Studio Installer, go to Workloads tab, make sure that GameDev with Unity is added
  2. In Unity go to Edit > Preferences, select External tools tab, set up your Visual Studio as an external editor.
    You can find a more detailed step by step guide in Microsoft’s site: Quickstart: Install & configure Visual Studio Tools for Unity | Microsoft Learn
Recollect answered 9/7, 2023 at 11:30 Comment(1)

Hello! i already selected visual studio as an external editor, but i'm going to read the QuickStart guide from microsoft to be sure i'm not missing something. Thank you for helping me!

Permanency

© 2022 - 2025 — McMap. All rights reserved.