Last updated: Apr 6, 2024
Reading time·4 min
The easiest way to find the extension error logs in VS Code is to:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.The command will open the OUTPUT tab in your VS Code editor with the Extension Host filter active.
VS Code is written in Electron, so you can check the messages it logs to the console.
If you need to open the VS Code developer tools to see the messages that get logged:
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.A new developer tools window opens to the side where you can see the logs in the
Console
tab.
You can also open the developer tools by clicking on:
Alt
to show the top menu on Windows and Linux.If you need to open the extension logs folder in Finder or Explorer:
Ctrl
+ Shift
+ P
on Windows and Linux.Command
+ Shift
+ P
on macOS.F1
to open the Command Palette.The command will open the extension logs folder in Finder/Explorer.
The same approach can be used to open the VS Code logs folder in Finder or explorer:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.The command will open your logs folder in Finder/Explorer.
You can also open a specific log file:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.You can also use the Output tab to open the extension error logs:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.The command will open and focus the Output view.
You can click on the dropdown menu and select Extension Host or any other channel you want to see the logs of.
Alternatively, you can:
Ctrl
+ Shift
+ P
on Windows and LinuxCommand
+ Shift
+ P
on macOSF1
to open the Command Palette.If you need to identify or change the VS Code extension location, click on the link and follow the instructions.
I've also written an article on how to view the local history and restore previous file versions in VS Code.
You can learn more about the related topics by checking out the following tutorials: