Visual Studio Code References Not Displaying

Steven Jul 09, 2026

Are you experiencing a frustrating issue with Visual Studio Code where your references aren't showing up as they should? You're not alone. This common problem can be quite puzzling, but don't worry, we've got you covered. In this guide, we'll delve into the reasons behind this issue and provide you with practical solutions to get your references displaying correctly.

the logo for visual studio code
the logo for visual studio code

Before we dive into the solutions, let's ensure we're on the same page. References in Visual Studio Code (VSCode) are the little squiggly lines under your code that indicate potential issues. They're there to help you write better code by suggesting fixes and providing information about your code's structure and usage. So, when they're not showing up, you're missing out on this helpful feature.

- b - l - o - k -
- b - l - o - k -

Understanding the Issue: Why aren't my references showing?

There could be several reasons why your references aren't showing in VSCode. Let's explore the most common ones.

Code - Code Tailwind In Visual Studio Code 2024 | A Background image of Code
Code - Code Tailwind In Visual Studio Code 2024 | A Background image of Code

1. **Extension Issues**: VSCode uses extensions to provide features like reference suggestions. If the extension isn't installed, enabled, or updated, you might not see references.

Missing or Disabled Extensions

Visual studio code – for writing XS – Age of Mythology Heaven
Visual studio code – for writing XS – Age of Mythology Heaven

First, ensure you have the necessary extensions installed. For most languages, the 'vscode-language-server' extension is required. You can install it by searching for it in the Extensions view (Ctrl+Shift+X).

Next, check if the extension is enabled. Go to Extensions, click on the gear icon next to the extension, and ensure 'Enable' is checked.

Outdated Extensions

Visual Studio Code (64bit) v1.78.1.exe - liveryapp
Visual Studio Code (64bit) v1.78.1.exe - liveryapp

Outdated extensions can also cause issues. VSCode should notify you when an update is available, but you can also manually check for updates. Click on the gear icon next to the extension and select 'Update'.

Checking VSCode Settings

Sometimes, the issue might not be with the extensions but with your VSCode settings.

10 Visual Studio Code Themes That Are Easy on the Eyes - Make Tech Easier
10 Visual Studio Code Themes That Are Easy on the Eyes - Make Tech Easier

1. **Language Server Settings**: VSCode uses language servers to provide features like references. Check if the language server for your language is enabled and configured correctly.

Language Server Settings

August 2022 (version 1.71)
August 2022 (version 1.71)
Microsoft Visual Studio Code Released For Windows, OS X, Linux [Download] | Redmond Pie
Microsoft Visual Studio Code Released For Windows, OS X, Linux [Download] | Redmond Pie
Visual Studio Code (VS Code) Made Easy For Beginners - 2024
Visual Studio Code (VS Code) Made Easy For Beginners - 2024
the visual studio code is shown in this screenshote screen shot, with text below it
the visual studio code is shown in this screenshote screen shot, with text below it
Only Visual Studio Code is Perfect for You
Only Visual Studio Code is Perfect for You
Visual Studio Code setup—Part 1
Visual Studio Code setup—Part 1
Html
Html
an image of a computer screen with code numbers on it and another screenshot of the web page
an image of a computer screen with code numbers on it and another screenshot of the web page
6 Visual Studio Code Extensions I Cannot Live Without
6 Visual Studio Code Extensions I Cannot Live Without
8 Visual Studio Code Extensions You Didn’t Know You Needed
8 Visual Studio Code Extensions You Didn’t Know You Needed
Visual Studio Code Logo PNG Vector (SVG) Free Download
Visual Studio Code Logo PNG Vector (SVG) Free Download
the pixel style logo with an x on it
the pixel style logo with an x on it
My Visual Studio Code Setup
My Visual Studio Code Setup
The 6 Best Visual Studio Code Themes to Start Into 2023
The 6 Best Visual Studio Code Themes to Start Into 2023
Ready to Code Python in Visual Studio? Let’s Set It Up
Ready to Code Python in Visual Studio? Let’s Set It Up
Visual Studio Code Adds More Autonomous AI Workflows and Cross-Device Agent Sessions
Visual Studio Code Adds More Autonomous AI Workflows and Cross-Device Agent Sessions
Visual Studio Code Logo Vector Download | Logowik
Visual Studio Code Logo Vector Download | Logowik
Favorite Visual Studio Code Extensions of 2017
Favorite Visual Studio Code Extensions of 2017
Visual Studio vs Visual Studio Code: What’s Different?
Visual Studio vs Visual Studio Code: What’s Different?
Visual Studio Code vs Visual Studio Community and Enterprise: Which is Best for Developers?
Visual Studio Code vs Visual Studio Community and Enterprise: Which is Best for Developers?

Open your VSCode settings (File > Preferences > Settings or press Ctrl+,). Search for 'language server'. Ensure the server for your language is enabled and the settings are correct. For example, for TypeScript, you should see 'typescript.tsdk': '/usr/local/lib/node_modules/typescript/lib'.

2. **General Settings**: There might be general settings that are preventing references from showing. Let's check a few.

General Settings

In your settings, search for 'editor.quickSuggestions' and ensure it's set to 'on'. This setting controls the appearance of suggestions, including references.

Also, search for 'editor.suggestOnTriggerCharacters' and ensure it's set to true. This setting controls whether suggestions appear when you type certain characters.

Restarting VSCode

Sometimes, the simplest solutions are the best. Restarting VSCode can often fix temporary glitches that might be preventing references from showing.

To restart VSCode, simply close it and reopen it. If you're using the command line, you can use 'code .' to restart VSCode in the current directory.

Remember, patience is key when troubleshooting. It might take a bit of trial and error to find the solution that works for you. But don't worry, with the steps outlined above, you should be well on your way to getting your references back in VSCode.