A Neovim plugin that opens the current project in Visual Studio Code or other VSCode-like editors (Cursor, Windsurf).
- Neovim >= 0.5.0
- Visual Studio Code (or alternative editor) installed and accessible via command line
Using packer.nvim:
use 'tssujt/openinvscode.nvim'
Using lazy.nvim:
{
'tssujt/openinvscode.nvim',
cmd = 'OpenInVSCode',
opts = {
-- configuration options here
}
}
require('openinvscode').setup({
editor = "code",
})
The plugin provides the :OpenInVSCode
command that opens the current working directory in your configured editor.
You can also create a keybinding in your Neovim configuration:
vim.keymap.set('n', '<leader>vsc', ':OpenInVSCode<CR>', { silent = true })
require('openinvscode').setup({
editor = "cursor"
})
require('openinvscode').setup({
editor = "windsurf"
})
MIT