Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lqqyt2423/codenav
Vscode plugin for improving the experience of reading source code
https://github.com/lqqyt2423/codenav
Last synced: 2 days ago
JSON representation
Vscode plugin for improving the experience of reading source code
- Host: GitHub
- URL: https://github.com/lqqyt2423/codenav
- Owner: lqqyt2423
- Created: 2020-08-06T10:51:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-09-15T06:23:03.000Z (over 1 year ago)
- Last Synced: 2024-11-06T03:32:30.355Z (about 2 months ago)
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=liqiqiang.codenav
- Size: 138 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Codenav
A better way to read code, only press one key to: jump to declaration, navigate back and navigate forward.
## Installation
1. Open Visual Studio Code
2. Press `Ctrl + Shift + X` to open the Extensions panel
3. Search for `codenav`
4. Click `Install`## Features
### Usage
1. Press `Command + Shift + P` to open the Command Palette
2. Search for `Codenav: Enable` and select it to enable plugin function to read code quickly and can't edit code.
3. Search for `Codenav: Disable` and select it to disable plugin function to the normal mode.
4. The status bar will show current status: `codenav:on` or `codenav:off`.### Key Bindings
When you have enabled codenav, you can use the following key bindings:
- `s` => jump to declaration, use vscode command: `editor.action.goToDeclaration`
- `a` => jump to implementation, use vscode command: `editor.action.goToImplementation`
- `d` => navigate back, use vscode command: `workbench.action.navigateBack`
- `f` => navigate forward, use vscode command: `workbench.action.navigateForward`
- `r` => go to source definition, only effect in ts or js project, use vscode command: `typescript.goToSourceDefinition`
- `h` => `cursorLeft`
- `j` => `cursorDown`
- `k` => `cursorUp`
- `l` => `cursorRight`
- `i` => to the edit(normal) mode
- `o` => `editor.action.insertLineAfter`, then to the edit(normal) mode
- `O` => `editor.action.insertLineBefore`, then to the edit(normal) mode### Modes
When you have enabled codenav, you can switch between the following modes:
- **Readonly Mode:** Press `Esc` to switch to readonly mode. In this mode, you cannot edit the code, and the key bindings behave like vim.
- **Normal Mode:** Press `i` to switch to normal mode. In this mode, you can edit the code, and the key bindings behave like normal Visual Studio Code key bindings.## More Information
For more information, please visit the [GitHub repository](https://github.com/lqqyt2423/codenav).
**Enjoy!**