Skip to content

Command Open Related File

Erik Lieben edited this page Feb 21, 2017 · 2 revisions

Open related file command

This command is a simple way to switch between your HTML and typescript or javascript source file. By default, the command is not attached to a key binding, but you can set one yourself by configuring it:

Go to File / Preferences / Keyboard Shortcuts

And add the following section in the right side (keybindings.json) of the JSON document that opens.

[
    {   
        "key": "alt+r",
        "command": "extension.auOpenRelated",
        "when": "editorFocus" 
    }
]

You can modify the key property to configure it to another key mapping

Clone this wiki locally