Search Unity

VS Code Annoyance

Discussion in 'Scripting' started by ToshoDaimos, Mar 20, 2020.

  1. ToshoDaimos

    ToshoDaimos

    Joined:
    Jan 30, 2013
    Posts:
    679
    I use VS Code with Unity. I name my class variables something like "m_nameEtc.". Then I name my accessing proprieties something like "NameEtc". I start by implementing m_nameEtc, then NameEtc. When I type "NameEtc" and press enter to enter a code block VS Code replaces "NameEtc" with "m_nameEtc". It basically can detect that these names are related and tries to mach them. I don't want that to happen. I want to have separate styles for my variables and for my proprieties without any forced matching. How can I disable this auto-matching feature?
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,187
    Looks like to me it isn't trying to match, it simply thinks you're trying to use the variable that you created. I don't have a direct answer for you. I disliked VS code and prefer regular VS more. In VS if the autocomplete box comes up, you can hit esc to close it so it doesn't try to complete it for you. I don't know if VS code behaves the same way.

    Unfortunately, this is a Unity forum, so you might not get an answer.