Scotty is a Visual Studio Code extension that allows you to quickly jump to and select specific characters or sequences of characters within your code. Perform jumps case-sensitively or case-insensitively and select text as you jump. Hopefully this extension seems familiar to clever-f.vim
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Scotty is a Visual Studio Code extension that allows you to quickly jump to and select specific characters or sequences of characters within your code. You can perform these jumps either case-sensitively or case-insensitively, and you have the option to select text as you jump.
Features
Jump forward or backward to a specific character or sequence of characters.
Select text as you jump forward or backward.
Perform jumps case-sensitively or case-insensitively.
Easily reset the jump state by changing the selection, document, or active editor.
Keybindings
Command
Keybinding
Description
Scotty: Jump Forward
ctrl+0
Jump forward to the next occurrence of a character
Scotty: Jump Backward
ctrl+7
Jump backward to the previous occurrence of a character
Scotty: Select Forward
ctrl+shift+0
Select forward to the next occurrence of a character
Scotty: Select Backward
ctrl+shift+7
Select backward to the previous occurrence of a character
Scotty: Jump Forward (Case-Insensitive)
ctrl+alt+0
Jump forward to the next occurrence of a character (case-insensitive)
Scotty: Jump Backward (Case-Insensitive)
ctrl+alt+7
Jump backward to the previous occurrence of a character (case-insensitive)
Scotty: Select Forward (Case-Insensitive)
ctrl+alt+shift+0
Select forward to the next occurrence of a character (case-insensitive)
Scotty: Select Backward (Case-Insensitive)
ctrl+alt+shift+7
Select backward to the previous occurrence of a character (case-insensitive)
Usage
Jump Forward:
Press ctrl+0 to jump forward to the next occurrence of a character or sequence of characters.
Enter the character(s) to jump to in the input box that appears.
Jump Backward:
Press ctrl+7 to jump backward to the previous occurrence of a character or sequence of characters.
Enter the character(s) to jump to in the input box that appears.
Select Forward:
Press ctrl+shift+0 to select forward to the next occurrence of a character or sequence of characters.
Enter the character(s) to jump to in the input box that appears.
Select Backward:
Press ctrl+shift+7 to select backward to the previous occurrence of a character or sequence of characters.
Enter the character(s) to jump to in the input box that appears.
Case-Insensitive Jump and Select:
Use the alt key with the above commands to perform case-insensitive jumps and selections.
Installation
Download and install Visual Studio Code.
Clone or download this repository.
Open the repository folder in Visual Studio Code.
Press F5 to open a new VSCode window with the extension loaded.
Use the provided keybindings to start jumping and selecting characters in your code.
Development
To make changes to this extension:
Open the repository folder in Visual Studio Code.
Make your changes to the source files.
Press F5 to test your changes in a new VSCode window.
Release Notes
0.2.0
Changed default shortcuts.
0.1.2
Initial release of Scotty.
Added support for jumping and selecting characters forward and backward.
Added case-insensitive options for jumping and selecting.
Contributing
Contributions are welcome! Please submit a pull request or open an issue to discuss any changes.
License
This project is licensed under the MIT License - see the LICENSE file for details.