Last updated: Apr 6, 2024
Reading time·3 min
The issue where a folder contains emphasized items in VS Code occurs for multiple reasons:
git
.The color of the dot near the folder name is important. For example:
The first thing you should try to resolve the issue is to reload your VS Code window:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.If the issue persists, you might have uncommitted changes in your git repository.
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.git add . git commit -m "YOUR COMMIT MESSAGE"
If you just want to get rid of the emphasized items warning and don't want to
track your files using git
, you can disable the git
integration in VS Code.
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.Here is a short clip that shows how to disable the setting.
Another thing that might help is to close the tabs of deleted or moved files.
Sometimes VS Code glitches when you delete or move a file and still have the tab open.
It still shows errors and warnings for the deleted or moved files in Explorer.
If the issue persists, try to restart VS Code again.
Completely close the Window by clicking on the X
icon in the top right corner
and reopen your project by issuing the code .
command from your terminal.
code .
If the issue persists, try to view the issues that cause the warning.
You can toggle the Problems tab by pressing:
Ctrl
+ Shift
+ M
Cmd
+ Shift
+ M
You can also:
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.If you see any warnings or errors in the tab, correct them, save the file and restart VS Code.
Closing VS Code completely and reopening a new window often solves the issue.
To solve the "folder contains emphasized items" in VS Code error:
git
.You can learn more about the related topics by checking out the following tutorials: