Giter Club home page Giter Club logo

switch-vscode's Introduction

Open Source and Test Files Side by Side

With this extension, you can now easily open your source code and test files side by side for efficient development and testing.

Usage

To open source and test files side by side, follow these steps:

  1. Open the source file you want to work on.

  2. Invoke the command palette by pressing Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS).

  3. Search for and select the Switch: Open Source and Test Files Side by Side command.

    Switch Command

  4. The extension will automatically locate the corresponding test file based on your configuration and open it alongside your source file.

Now you can easily switch between your source and test files to streamline your development and testing workflow!

Configuration

You can customize the behavior of this functionality by adjusting the extension's settings in your settings.json file. Here are some of the key settings you can configure:

  • switch.sourcePath: The path to the source files.
  • switch.testPath: The path to the test files.
  • switch.sourceFilePattern: The extension pattern for source files.
  • switch.testFilePattern: The extension pattern for test files.

Make sure to check the Extension Settings section for more details on configuring these settings.

Switch Settings

Extension Settings

You can configure the extension's behavior by adding the following settings to your settings.json file:

"switch.sourcePath": {
  "type": "string",
  "default": "src/",
  "description": "The path to the source files."
},
"switch.testPath": {
  "type": "string",
  "default": "test/",
  "description": "The path to the test files."
},
"switch.sourceFilePattern": {
  "type": "string",
  "default": "{baseName}.ts",
  "description": "The extension of the source files."
},
"switch.testFilePattern": {
  "type": "string",
  "default": "{baseName}.spec.ts",
  "description": "The extension of the test files."
}

switch-vscode's People

Contributors

fxlipe115 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.