Giter Site home page Giter Site logo

adrianwilczynski / switcher Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 6.0 704 KB

Visual Studio Code extension. Switch between related files (same name, different extensions) using keybindings, context menu or command palette. Configured out of box to work with Angular, Razor Pages, TypeScript, Sass and minified JS or CSS files.

TypeScript 100.00%

switcher's People

Contributors

adrianwilczynski avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

switcher's Issues

suggestion: change default key bindings

Hi. Thanks for this extension, it's quite useful for me. However, I had to change default key mapings on my own as mappings from readme are hard to remember, IMHO. So, I would suggest changing default key bindings to following:

Key Command
Alt + c Go to Component
Alt + h Go to Template (HTML)
Alt + s Go to Stylesheet
Alt + t Go to Test

Show warning when `switcher.associations` setting is not correctly formatted

When we make a mistake in the "switcher.associations" setting array, no warning is shown to notify the user.

For example, I put "stories.js" instead of ".stories.js" and it was hard to find out why the commands did not work.

    {
      "extension": ".js",
      "associated": {
        "stylesheet": [".scss"],
        "test": [".test.js", ".spec.js"],
        "custom": [".story.js", "stories.js"] // oops
      }
    }

I suggest to show a warning message when this happens, something like: "Some associations in switcher.associations setting are not correctly formatted and ignored."? And maybe add "Make sure that the extensions start with dot ."?

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.