{"id":14,"date":"2025-02-02T23:52:19","date_gmt":"2025-02-02T23:52:19","guid":{"rendered":"https:\/\/stark-tech.net\/?page_id=14"},"modified":"2025-02-03T00:03:21","modified_gmt":"2025-02-03T00:03:21","slug":"setting-up-vs-code-for-unity-sinespace-project","status":"publish","type":"page","link":"https:\/\/stark-tech.net\/index.php\/setting-up-vs-code-for-unity-sinespace-project\/","title":{"rendered":"Setting up VS Code for Unity Sinespace Project"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"Setting up VS Code for Unity Sinespace Project\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/b4x-Gzrpg_s?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Generate autocomplete file for Visual Studio Code.\n<ul class=\"wp-block-list\">\n<li>In your Unity project, click the menu item Sinespace-&gt;Tools-&gt;Scripting-&gt;Generate autocomplete file for atom.<\/li>\n\n\n\n<li>A window will pop up asking \u201cSave autocomplete where?\u201d. Navigate into the project folder for your unity project that you made note of earlier. If you are in the correct folder, you should see the folders: Assets, Library, Logs, Packages, ProjectSettings, Temp, and UserSettings.<\/li>\n\n\n\n<li>Leave the filename as \u201c.luacompleterc\u201d and click Save.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Download Visual Studio Code.\n<ul class=\"wp-block-list\">\n<li>Visit <a href=\"https:\/\/code.visualstudio.com\/\">https:\/\/code.visualstudio.com\/<\/a> and follow links to the appropriate version for your operating system.<\/li>\n\n\n\n<li>After downloading, run the installer.<\/li>\n\n\n\n<li>Accept the License Agreement.<\/li>\n\n\n\n<li>Select the destination install location. Default should be fine. Click Next.<\/li>\n\n\n\n<li>Select start menu folder. Default should be fine. Click Next.<\/li>\n\n\n\n<li>Select additional tasks.\n<ul class=\"wp-block-list\">\n<li>Make sure \u201cAdd \u201cOpen with Code\u201d action to Windows Explorer file context menu\u201d is checked.<\/li>\n\n\n\n<li>Make sure \u201cAdd \u201cOpen with Code\u201d action to Windows Explorer directory context menu\u201d is checked.<\/li>\n\n\n\n<li>Make sure \u201cRegister Code as an editor for supported file types\u201d is checked.<\/li>\n\n\n\n<li>Make sure \u201cAdd to PATH (requires shell restart)\u201d is checked.<\/li>\n\n\n\n<li>Click Next.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Click Install.<\/li>\n\n\n\n<li>After installing, make sure the box is checked to Launch Code. Click Finish.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Set up VS Code.\n<ul class=\"wp-block-list\">\n<li>With VS Code open, on the left side there is a button for Extensions that looks like 3 boxes, with 1 more box popping out the top right side. Click that button or press Ctrl+Shift+X<\/li>\n\n\n\n<li>Search the extensions marketplace for \u201cLuaCoderAssist\u201d. It should show up below the search box with the name \u201cliwangqian\u201d beneath it. Click it in the list.<\/li>\n\n\n\n<li>Click the Install button on the page for the extension.<\/li>\n\n\n\n<li>After that is installed, click the file menu and Add Folder to Workspace. Navigate to your Unity project folder that you made note of earlier, the same place you saved the \u201c.luacompleterc\u201d file. Remember this and the following step, as you may need to do this again in the future should VS Code \u201cforget\u201d your workspace.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Link Unity and VS Code.\n<ul class=\"wp-block-list\">\n<li>In Unity, click the menu item Edit-&gt;Preferences.<\/li>\n\n\n\n<li>Navigate to the External Tools section.<\/li>\n\n\n\n<li>In the dropdown menu for External Script Editor, select Visual Studio Code. If it is not in the list, you may need to restart Unity.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Congrats! You are now ready to script some objects in your Sinespace project.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-14","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/pages\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":2,"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/pages\/14\/revisions"}],"predecessor-version":[{"id":26,"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/pages\/14\/revisions\/26"}],"wp:attachment":[{"href":"https:\/\/stark-tech.net\/index.php\/wp-json\/wp\/v2\/media?parent=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}