If you're experiencing issues in Visual Studio Code (VS Code) and need to collect logs to help with troubleshooting, you can export detailed logs directly from the editor. Here's how to do it step-by-step:
Step 1: Open the command palette
Press Cmd + Shift + P
(on macOS) or Ctrl + Shift + P
(on Windows/Linux) to open the Command Palette.
Search for and select Developer: Export Logs....
Step 2: Select logs to include
A list of available log categories will appear. By default, nothing is selected. For the most comprehensive export, we recommend checking the topmost checkbox to the left of the input field which will select them all. Then if you need, you can deselect specific ones depending on the issue you're troubleshooting.
Click OK to proceed.
Step 3: Save the log file
A dialog will prompt you to choose a location to save the log file. Name the file (e.g., output.log
) and select your desired destination (such as your Desktop).
Click Save to complete the export.
Review and share your logs
You now have a .log
file that can be shared with support or used for your own debugging. Make sure to review the contents before sharing, especially if the logs might contain sensitive information.