LoginSignup
1
1

More than 3 years have passed since last update.

【Unity for Mac】VSCodeでC# Extensionの設定

Posted at

UnityのScript EditorでVSCode

  • C# Extensionが機能しない
  • F12やCommand+クリックで関数の定義へジャンプしない
  1. C#のエクステンションをインストールする(エクステンションショートカット:Command+Shift+X)
  2. 設定を開く(設定ショートカット:Command+,)
  3. Search settingsに「mono」とタイプすると、Extensionsの項目に「C# configuration」がヒットするので開く
  4. 「Use Global Mono」の設定を「always」にする
  5. 「Mono Path」の設定(Edit in settings.json)を開き、「omnisharp.monoPath」を入力する
  6. VSCodeを再起動する

omnisharp.monoPath の確認方法

ターミナルを開き以下のコマンドで確認する

which mono

mono バージョンの確認方法

mono -V
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1