Skip to content

Instantly share code, notes, and snippets.

@yukpiz
Last active June 23, 2016 09:02
Show Gist options
  • Save yukpiz/9cbb7ef6e82da845bb4f58a2005a69e5 to your computer and use it in GitHub Desktop.
Save yukpiz/9cbb7ef6e82da845bb4f58a2005a69e5 to your computer and use it in GitHub Desktop.

UnityでVisual Studio Codeの設定メモ

環境


  • Mac OS X 10.9.5
  • Unity 5.3.5f1

Monoインストール


$ brew install mono
$ mono --version
Mono JIT compiler version 4.4.0 (tarball Wed Jun 15 18:25:45 BST 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           normal
	SIGSEGV:       altstack
	Notification:  kqueue
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug
	LLVM:          supported, not enabled.
	GC:            sgen

Visual Studio Codeをインストール


以下よりダウンロードしてインストール。
Visual Studio Code - Download

Unityにアセットを追加

以下よりダウンロードしてインポート。
VsCode - Asset Store

UnityのPreferences


  1. VSCode=>Enable integrationにチェック
  2. VSCode=>Use Unity Debuggerにチェック
  3. VSCode=>Install Unity Debuggerをクリック
  4. VSCode=>Write Workspace Settingsをクリック
  5. External Tools=>External Script Editor=>BrowseVisual Studio Code.appを選択

Unityから開く


上部メニューのAssets=>Open C# Project In Codeを選択

Visual Studio Codeの設定とか


SHIFT+⌘+Pでコマンドパレットを開く事ができます。
Visual Studio Codeの持つ機能をコマンドから呼び出す事ができます。

拡張機能のインストール

> install
Extensions: Install Extension

配色テーマ

> theme
Preferences: Color Theme

導入した拡張機能


Vimキーバインドを追加

ext install vim

C#カラースキーマを追加

ext install csharp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment