Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Problems with VS Code after adding the "Unity" extension

Discussion in 'Editor & General Support' started by meta44, Aug 10, 2023.

  1. meta44

    meta44

    Joined:
    Sep 11, 2018
    Posts:
    23
    Today I added the "Unity" extension to VS Code. I was previously just using the Unity Code Snippets and IntelliCode. Now, I'm having multiple issues:

    First, here are blue squiggly lines all over the place from Roslyn for things like "Naming Rule Violation" (IDE1006). I can right click and accept the change, but it's very time consuming to do that for every single one. Is there a quick way to accept all suggested changes?

    Second, previously every single variable had an indicator just above it for how many references their were to that variable. Now, only reference variables have this number. I can still right click a variable and click "go to references", but I like being able to see how many without doing this. Is there a way to revert back to this?
     
  2. Reid_Taylor

    Reid_Taylor

    Joined:
    Oct 9, 2019
    Posts:
    57
    I don't know anything specific about the Unity extension as I am unfamiliar with it, but most VS Code extensions have some sort of config file which you can edit to set the rules of the extension.