Assign Shortcut to Open a Frequently Visited File - Navigate to Exact Note.

To create a keyboard shortcut to open a specific frequently visited file without searching:

  1. Open keybindings.json
  2. Add the following command with the path to your file:
[
  {
    "key": "ctrl+alt+1",
    "command": "vscode.open",
    "args": "/absolute/path/to/your/frequently-visited-note.md"
  }
]
Note: Use absolute paths

Important: Relative paths have not been reliable so far. Using absolute paths has worked well. For example:

  • Windows: "C:/Users/YourName/projects/myfile.js"
  • Mac/Linux: "/home/username/projects/myfile.js"

For Searchability

For Searchability

hot files shortcut hot key


Backlinks