Skip to content

Opens the associated file for simultaneous work on two files.

Notifications You must be signed in to change notification settings

peni4142/work-as-two

Repository files navigation

work-as-two README

Often as a developer you have to work in two files at the same time. For test-driven-development, as an example you often edit the functional and test parts in different files. Or while web development you would like to open the associated css file.

So let the extension open for you the associated file side by side :-)

The transformation works like the string function replace You need to define a regex which has to match your file. Backslashes have to be escaped. Then you can use groups to define the filename of the complementary. I recommend using ^ at the beginning and $ at the end of your filenames.

The settings used for this project:

{
    "work-as-two.leftEscapedRegex": "^(.*)(\\.ts)$",
    "work-as-two.leftTransformToRight": "$1.unit-test$2",
    "work-as-two.rightEscapedRegex": "^(.*)\\.unit-test(\\.ts)$",
    "work-as-two.rightTransformToLeft": "$1$2"
}

About

Opens the associated file for simultaneous work on two files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published