Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>rails-rspec-file-toggleNew to Visual Studio Code? Get it now.
rails-rspec-file-toggle

rails-rspec-file-toggle

Koji Murata

|
9,488 installs
| (1) | Free
In rails project with rspec, toggle between spec and tested file.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

rails-rspec-file-toggle

This is an extension for Visual Studio Code. In rails project with rspec, toggle between spec and tested file.

Features

[
    {
        "command": "extension.railsRspecFileToggle",
        "title": "Rails Rspec File Toggle",
        "key": "cmd+alt+r"
    }
]

screenshot

Extension Settings

"railsRspecFileToggle.convertDefinition": {
    "default": [
        {
            "app_directory": "controllers",
            "spec_directory": "requests",
            "app_suffix": "_controller",
            "spec_suffix": ""
        }
    ],
    "description": "convert app directory path `app/${app_directory}/**/*${app_suffix}.rb` to spec path `spec/${spec_directory}/**/*${spec_suffix}_spec.rb`.",
    "type": "array"
},
"railsRspecFileToggle.rspecDirectory": {
    "default": "spec",
    "description": "rspec directory name.",
    "type": "string"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft