<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Visual Studio Code | Étienne Peillard</title><link>https://www.etiennepeillard.com/tag/visual-studio-code/</link><atom:link href="https://www.etiennepeillard.com/tag/visual-studio-code/index.xml" rel="self" type="application/rss+xml"/><description>Visual Studio Code</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><lastBuildDate>Mon, 02 Feb 2026 00:00:00 +0000</lastBuildDate><image><url>https://www.etiennepeillard.com/media/sharing.png</url><title>Visual Studio Code</title><link>https://www.etiennepeillard.com/tag/visual-studio-code/</link></image><item><title>Unity setup — Brest campus PCs</title><link>https://www.etiennepeillard.com/teaching/tutorial/unity-instructions-pc-ecole/</link><pubDate>Mon, 02 Feb 2026 00:00:00 +0000</pubDate><guid>https://www.etiennepeillard.com/teaching/tutorial/unity-instructions-pc-ecole/</guid><description>&lt;h2 id="unity-hub-and-unity-63-lts">Unity Hub and Unity 6.3 LTS&lt;/h2>
&lt;p>Launch &lt;strong>Unity Hub&lt;/strong> from the school computer&amp;rsquo;s applications menu (on Linux: &lt;strong>Applications &amp;gt; Development &amp;gt; Unity Hub&lt;/strong>, depending on the workstation). Sign in to your Unity account, creating one if needed, and follow the workstation&amp;rsquo;s license instructions.&lt;/p>
&lt;p>In &lt;strong>Installs&lt;/strong>, use the already installed &lt;strong>Unity 6.3 LTS&lt;/strong>. Its version starts with &lt;code>6000.3&lt;/code>; keep the installed patch for the lab.&lt;/p>
&lt;p>If the installation is not listed, use &lt;strong>Locate&lt;/strong> and select the &lt;strong>Editor/Unity&lt;/strong> executable belonging to the workstation&amp;rsquo;s 6.3 installation. The exact path depends on the school&amp;rsquo;s setup: ask the instructor if necessary. The old &lt;code>/opt/img/Unity-2021.3.9f1/Editor/Unity&lt;/code> path no longer matches the course version.&lt;/p>
&lt;p>Create a &lt;strong>Universal 3D (URP)&lt;/strong> project. In &lt;strong>Window &amp;gt; Package Management &amp;gt; Package Manager&lt;/strong>, prepare &lt;strong>Input System&lt;/strong>, &lt;strong>Unity UI&lt;/strong> and the FPS controller dependencies during the session. Under &lt;strong>Edit &amp;gt; Project Settings &amp;gt; Player &amp;gt; Other Settings &amp;gt; Configuration&lt;/strong>, select &lt;strong>Active Input Handling = Input System Package (New)&lt;/strong> if it is not already selected, then accept the requested restart.&lt;/p>
&lt;p>Export requires the workstation platform&amp;rsquo;s build module. If missing, inform the instructor; &lt;strong>Unity Hub &amp;gt; Installs &amp;gt; installation menu &amp;gt; Add modules&lt;/strong> can add it when workstation permissions allow.&lt;/p>
&lt;h2 id="visual-studio-code-c-editor">Visual Studio Code (C# editor)&lt;/h2>
&lt;p>Current integration uses the &lt;strong>Unity&lt;/strong> extension published by &lt;strong>Microsoft&lt;/strong> in VS Code. It installs the required C# dependencies, including &lt;strong>C# Dev Kit&lt;/strong>. In Unity&amp;rsquo;s Package Manager, use &lt;strong>Visual Studio Editor&lt;/strong>, at the stable version offered for the editor and &lt;strong>at least 2.0.20&lt;/strong>. The older &lt;strong>Visual Studio Code Editor&lt;/strong> package is no longer maintained. &lt;a href="https://code.visualstudio.com/docs/other/unity" target="_blank" rel="noopener">Microsoft instructions&lt;/a>.&lt;/p>
&lt;p>To open scripts in VS Code:&lt;/p>
&lt;ol>
&lt;li>In Unity, open &lt;strong>Edit &amp;gt; Preferences &amp;gt; External Tools&lt;/strong> (on macOS, preferences are in the Unity menu).&lt;/li>
&lt;li>Under &lt;strong>External Script Editor&lt;/strong>, choose &lt;strong>Visual Studio Code&lt;/strong> or use &lt;strong>Browse…&lt;/strong>. On Linux workstations where installed there, the executable is &lt;code>/usr/bin/code&lt;/code>.&lt;/li>
&lt;li>Use &lt;strong>Regenerate project files&lt;/strong> if needed, then open a script from Unity to load the complete project in VS Code.&lt;/li>
&lt;/ol>
&lt;h3 id="troubleshooting-auto-completion">Troubleshooting auto-completion&lt;/h3>
&lt;ul>
&lt;li>Check that Microsoft&amp;rsquo;s &lt;strong>Unity&lt;/strong>, &lt;strong>C#&lt;/strong> and &lt;strong>C# Dev Kit&lt;/strong> extensions are enabled and &lt;strong>Visual Studio Editor&lt;/strong> is installed.&lt;/li>
&lt;li>Open the complete Unity project, rather than a standalone C# file. Regenerate project files and reload the VS Code window.&lt;/li>
&lt;li>Inspect extension messages and resolve compilation errors in Unity&amp;rsquo;s Console.&lt;/li>
&lt;li>If a .NET runtime or SDK is requested, follow the extension&amp;rsquo;s instructions and have the workstation installation checked.&lt;/li>
&lt;/ul>
&lt;p>The old &lt;strong>OmniSharp Use Global Mono = always&lt;/strong> instructions concern a previous generation of integration and should not be applied by default to this setup.&lt;/p>
&lt;h2 id="choosing-the-project-folder">Choosing the project folder&lt;/h2>
&lt;p>Store the project &lt;strong>on the local disk&lt;/strong>, such as the workstation&amp;rsquo;s local workspace or &lt;code>/tmp&lt;/code> on Linux if intended for the session. The local SSD avoids network storage delays during import and compilation.&lt;/p>
&lt;h3 id="end-of-session-backup">End-of-session backup&lt;/h3>
&lt;p>Temporary storage may be deleted on restart. &lt;strong>Save and copy your project to your personal storage before leaving the workstation.&lt;/strong> Keep &lt;strong>Assets (including .meta files), Packages and ProjectSettings&lt;/strong>. Unity can regenerate the &lt;code>Library&lt;/code> and &lt;code>Temp&lt;/code> caches.&lt;/p></description></item></channel></rss>