skip to Main Content

similar issue with How to force VSCode to require manual choice where goimports match multiple packages with same name?

I have two package under different directories
github.com/myproject/mytest1/mytest
github.com/myproject/mytest2/mytest

When I type "mytest", the autocomplete gives me the
suggestion with two "mytest". I can’t tell which directory the two "mytest" belong to. Is there a way to display the full path of package?

2

Answers


  1. On a Mac, when you see the list with choices, press ^ + Space. That will show the full package path as you move from one package to the other.

    Login or Signup to reply.
  2. Use arrows to move selection in the autocomple window.
    Autocompletion in VS code

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