14

When I go to the function, I want to see its references links and navigate to them. In my Sublime Text it is working properly but I want to make proper in my VS Code also.

Screenshot showing the hover in Sublime with "Definition" and "References" sections containing links

2
  • very very tempted to close as a dup of stackoverflow.com/questions/41115285/… Commented Dec 27, 2023 at 18:44
  • @starball ? it has nothing to do with that ? Commented Jul 4 at 21:53

5 Answers 5

7

I recently had the same issue for like a week and I was going crazy, then I discovered that there is a setting for it, which I don't remember disabling but anyways it fixed the problem.

Go to your VSCode settings (settings.json) and set editor.hover.enabled to true.

{ "editor.hover.enabled": true } 

Otherwise, if you like UI setting stuff, search for "hover enabled" or editor.hover.enabled in your settings and make sure it is enabled.

setting image

Sign up to request clarification or add additional context in comments.

Comments

7

Enable the language extension

I fixed this by going to Extensions, typing @builtin, scrolling to my language extension in Features list (Typescript and Javascript item) and enabling it:

Screenshot showing how to get to Extensions on Mac

Screenshot showing "TypeScript and JavaScript Language Features" in the Features list

For some reasons the extension was disabled in the list (even though the docs say it's enabled by default).

Screenshot showing the extension now enabled

Source: alexdima's comment from 4 Dec 2019 on GitHub

Comments

1

The feature you are referencing is known as IntelliSense in VSCode, which is enabled by default on versions 1.3 and above.

The languages supported out of the box are JavaScript and TypeScript.

So, if you need code-IntelliSense for other languages you'll have to install extensions for the specific languages.

See image below for IntelliSense support

Screenshot showing IntelliSense explanation/demo

Comments

0

if you are using /** */ comments on C++ i found out that disabling this option may help seeing them in the hover: simplify structured comments

1 Comment

Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
0

It's just /**

On Xcode it/s ///, on VSCode it is /** And it works great!

enter image description here

Note that the extra stars added for decoration on the left of long comments is "just what is added. If for some reason you really want to you can delete them one by one; they are NOT involved in the hover.

Xcode users will be pleased you can finally use newlines, paragraphs etc freely.

You can freely add code with the usual backticks, it's great.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.