Settings

Theme

Ask HN: Virtual Layer Code Editor?

2 points by sbr464 2 years ago · 5 comments · 1 min read


Sometimes I want to make notes or space out functions while exploring code. Is there a plugin/best practice for editing a file without actually modifying it, but not losing the changes after the session? Current method is to duplicate a file and mess around with it, but prefer not dirtying the directory.

ss48 2 years ago

Take a look at this. I'm not sure how active development is though.

https://thamara.dev/posts/code-annotation-a-vscode-extension...

  • ss48 2 years ago

    Otherwise, your next best bet would be to add a notes file or folder with all your TODOs and notes that refer to lines in the source code and keep that in gitignore.

  • billconan 2 years ago

    does this work when code has changed?

sbr464OP 2 years ago

And definitely don't want to make git branches that you forget exist.

Keyboard Shortcuts

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