Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Remember or Restore CursorNew to Visual Studio Code? Get it now.
Remember or Restore Cursor

Remember or Restore Cursor

ctf0

|
133 installs
| (1) | Free
remember & restore cursor/s position with ease
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Remember or Restore Cursor

remember & restore cursor/s position with ease.

what problem does this fix ?

i usually run one or more linter on file-save through trmnl/cli "not a big fan of editor plugins", which might move the cursor all the way to the end of the file.

so out of frustration of having to relocate the cursor everytime that happens, now we can remember the position b4 the trmnl/cli run and restore it back when all are done.

Notes

  • after restore, remembered positions are cleared.

  • u can use the ext with something like macros to automatically save & restore cursor position each time you save a file ex.

    • settings
    "saveFile": [
        "src.remember",
        "workbench.action.files.save",
        {
            "command": "$delay",
            "args": {
                "delay": 1000 // change accroding to your need
            }
        },
        "src.restore"
    ],
    
    • keybinding
    {
        "key": "cmd+s",
        "command": "macros.saveFile",
        "when": "editorFocus"
    },
    
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft