qJump is a Visual Studio Code extension that allows you to quickly jump to any label or line number in your code. With qJump, you can navigate large files effortlessly, jumping directly to specific words or line numbers with a simple command.
I took inspiration from a well known and loved NeoVim plugin Hop Neovim by smoka7, so that is the basis of the plugin!
- Jump to Labels: Automatically generates labels for words within the visible range of the editor, allowing you to quickly jump to them by typing their label.
- Jump to Line Number: Directly jump to any line number by typing it in the input box.
- Dynamic Label Generation: Labels are generated based on the content of the visible range in the editor, allowing quick navigation in large files.
- Automatic Update: Labels are updated when scrolling stops, ensuring you always see the correct labels for the visible content.
- Keyboard Shortcut: Default keybinding is
Ctrl+Shift+J
(Windows and macOS) for easy access to the jump command.
- Open a file in the editor.
- Press the keyboard shortcut (
Ctrl+Shift+J
). - An input box will appear at the top. You can:
- Type a label: Enter the label corresponding to the word you want to jump to (e.g., "A", "B", etc.).
- Enter a line number: Directly jump to a specific line by entering its number.
- Press
Enter
to jump to the specified label or line.
This extension does not contribute any additional settings.
Ctrl+Shift+J
(Windows and macOS): Activates the quick jump command.
- The extension currently generates labels only for words in the visible range of the editor. If you scroll or resize the editor, labels will be updated automatically.
- Limited to generating labels for alphanumeric words (including underscores).
- Visual Studio Code
^1.93.0
- Download and install the extension from the Visual Studio Marketplace.
- Or, manually install using the
.vsix
file:- Download the
.vsix
file. - In Visual Studio Code, go to Extensions > ... > Install from VSIX.
- Download the
To work on this extension locally:
- Clone the repository.
- Run
npm install
to install dependencies. - Open the directory in Visual Studio Code.
- Press
F5
to open a new window with the extension loaded.
Contributions are welcome! Please open an issue or submit a pull request.
- Initial release of qJump.
This extension is licensed under the MIT License.