Ruby LSP - Go To Spec or Create
Ruby LSP go to spec
A VSCode extension that adds a command to quickly navigate to a spec file or create it if it doesn't exist.
Features
- Navigate to the corresponding spec file from a source file
- Navigate to the source file from a spec file
- Automatically create a spec file with a basic template if it doesn't exist
- Automatically create a source file from a spec file
Usage
- Open a Ruby file in the editor
- Press
Cmd+Option+. (Mac) or Ctrl+Alt+. (Windows/Linux)
- Or use the command "Ruby LSP: Go To Relevant File or Create" from the command palette
The extension will attempt to find the corresponding file through Ruby LSP. If the file is not found, it will offer to create it automatically.
Requirements
Installation
- Install dependencies:
npm install
- Compile the extension:
npm run compile
- Press F5 to run the extension in development mode
Development
npm run compile - compile the extension
npm run watch - automatically recompile on changes
- F5 - launch the extension in debug mode
| |