skip to Main Content

See the below VSCode Intelisence auto-complete while typing "c", It’s always children at first. how do I change to make it so that className is listed as first?

No matter how many time I chose the className, it always suggest children again.

image

This is on a React JS file. Any help?

2

Answers


  1. Chosen as BEST ANSWER

    Solved it by using recentlyUsedbyPrefix option in editor.suggestSelection

    enter image description here


  2. You can change the IntelliSense suggestions in VS code by modifying the editor.suggestSelection setting.

    1. open user settings
      Open VS Code settings by either pressing Ctrl + ,
      or by selecting "Preferences: Open User Settings" from the Command Palette (Ctrl + Shift + P).
      or from file choose preferences

    2. search for editor.suggestSelection and edit it.

    3. You’ll see the following options in the image

    enter image description here

    "recentlyUsed" : You will get the option that you have recently used.

    "recentlyUsedByPrefix": You will get the option that you frequently use.

    I hope this helps.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search