Listen to this post
Reading Time: < 1 minute
Visual Studio Code

Visual Studio Code and opening the program that is associated with the file’s extension. This covers both Mac and Windows.

Mac

  1. CMD-Shift-P
  2. Tasks: Configure Task
  3. Add this JSON to the task
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Open file",
            "type": "shell",
            "command": "open",
            "args": ["${file}"]
        }
    ]
}

Windows

  1. Ctrl-Shift-P or F1
  2. Tasks: Configure Task
  3. Add this JSON to the task file
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "Open file",
            "type": "shell",
            "command": "explorer.exe",
            "args": ["${file}"]
        }
    ]
}

Sharing is caring!

Leave a comment