Settings

Theme

Follow along implementing a VSCode extension in 5 minutes

github.com

54 points by popsticl3 2 years ago · 2 comments

Reader

robenkleene 2 years ago

I use a personal VS Code extension (https://github.com/robenkleene/vscode-robenkleene/) in order to extend VS Code the same way Emacs or Vim can be extended.

I recently cleaned it up, and now it has three features that are important to my workflow:

1. Copy the current cursor location in grep format (i.e., `<path>:<line-number>:<column-number>`. (I use this as either a bookmark or to open the exact same cursor locatio in another editor.)

2. Zoxide (https://github.com/ajeetdsouza/zoxide) integration which I use to switch directories quickly.

3. Similarly, I added to the right-click menu in the file exporer an option to `Open Directory`, i.e., open that folder VS Code. I feels like madness to me that you can’t do this by default. (I know most folks probably juse `code .` in the project root, but if you work in a monorepo for instance there are tons of advantages to sometimes opening subfolders [i.e., as a way to switch projects]).

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection