Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ruby LSP - Go To Spec or CreateNew to Visual Studio Code? Get it now.
Ruby LSP - Go To Spec or Create

Ruby LSP - Go To Spec or Create

Ivan Leschinsky

|
2 installs
| (0) | Free
Navigate to spec file or create it automatically if it doesn't exist
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open a Ruby file in the editor
  2. Press Cmd+Option+. (Mac) or Ctrl+Alt+. (Windows/Linux)
  3. 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

  • Ruby LSP must be installed and active

Installation

  1. Install dependencies:
npm install
  1. Compile the extension:
npm run compile
  1. 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
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft