Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>code-papercutsNew to Visual Studio Code? Get it now.
code-papercuts

code-papercuts

Luke Batchelor

|
365 installs
| (0) | Free
A small extension to work around some very small issues I have in VScode
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Papercuts

This extension is created purely to facilitate adding all the little functions that make my life a little bit easier in VSCode.

There are lots of small little missing things that grind my gears, so I'm trying to fix as many of these as I can.

Most of these fixes are through adding new commands which can then be bound to key bindings or called from other extensions.

For now, I will leave all the parts on by default. If this grows, or if people request it I will hide each one behind a setting in VSCode so that they are opt-in.

Close all unsaved editors

I usually like to have a couple of editors open as scratch pads, places to jot notes. Existing solutions (close all files, close files to right, close other files, etc) are all painful/don't solve the problem.

I've simply added a extension.closeAllSavedDocuments command that implements this. It is also exposed as a command in the command pallete (CMD + Shift + P > Close all saved documents).

Notes: Currently I'm unable to close the welcome editor for some reason. I might try to find a way around this in the future.

Also, currently it will close each editor quite slowly (closes and editor, waits 500ms, goes to next editor, waits 500ms). This is due to a lack of support for

a) Getting a list of open editors (See Issue #15178.

b) The calling of nextEditor and closeActiveEditor sometimes not being completed when the Promise returns.

Hopefully both of these issues are fixed in the future.

Bugs and Feature Requests

Please report any bugs or feature requests here.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft