Try   HackMD

Unity Vscode for mac error report and autocomplete自動補全與偵錯無法顯示的修正

tags: Unity

Step 1: Required packages 下載需要的包

  • mono (brew install mono)
  • .net5.0 (brew install cask dotnet)
  • C# vsix (Package Link: https://github.com/OmniSharp/omnisharp-vscode/releases)
    (Install as below)
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

Step 2: Disable auto updating extensions in vscode 關閉Vscode裡自動更新套件的功能(避免C#更新時又出錯)

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step 3: Delete the csproj and sln file in your unity project folder. 刪除Unity專案資料夾裡的 .csproj & .sln檔案

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step 4: Go to Unity -> Preferences -> External Tools -> Regenerate project files and select the Vscode as your default editor. 將Vscode設成預設編輯器,與點擊 Regenerate project files.

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Step 5: Go to Assets -> Open C# project

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Done!!

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →