Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OpenWithNew to Visual Studio Code? Get it now.
OpenWith

OpenWith

j-martin

|
715 installs
| (0) | Free
Open current file in any application or text editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

OpenWith

** Beta **

Allow to open the current file at the same cursor position in any program (that supports it).

Usage

It assumes that the command will be executed from the vim extension with valid arguments. At this point, I would not recommend using this extension since it's at its alpha stage.

You'll probably want to use this extension instead.

Example

It can be used with the vim extension or using the command palette (cmd+shift+p) via Open With....

{
  "vim.otherModesKeyBindingsNonRecursive": [
    {
      "before": [
        "<leader>",
        "o",
        "u"
      ],
      "after": [],
      "commands": [
        {
          "command": "openWith.open",
          "args": ["emacsclient +{line}:{column} '{filename}'"]
        }
      ]
    }
  ],
  "openWith.commands": {
    "Emacs (Client)": "emacsclient +{line}:{column} '{filename}'",
    "GoLand": "/Applications/GoLand.app/Contents/MacOS/goland --line {line} --column {column} '{filename}'",
    "Sublime": "subl '{filename}:{line}:{column}'"
  }
}

Release Notes

0.4.0

  • Make commands configurable in the settings.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft