GithubHelp home page GithubHelp logo

jumptoaliasfile's Introduction

可以对 webpack 别名路径或者自定义别名路径进行快速跳转的插件.

适用场景

  • 自定义文件夹别名和文件夹名称不同, 比如: "@comp": "src/components", 别名@comp和文件夹名称components是不同的
  • .vue 文件, vscode 不能正确识别 .vue 文件的引入

如果你的自定义文件夹别名和文件夹名称相同, 如"components": "src/components", 别名components和文件夹名称components是相同的, 通常情况下vscode可以识别到, 不需要使用此插件. 如果vscode不能自动识别, 可以使用此扩展

Sample

Configuration

如果使用的是 webpack 别名路径, 99% 的情况不需要做任何设置, 插件可以智能的识别出 webpack alias, 并进行自动设置.

  • alias: 别名路径映射, 路径为绝对路径
"jumpToAliasFile.alias": {
  "@": "/Users/xxx/project/src",
}
  • webpeckConfigPath: webpack config 文件路径, 路径可以为绝对路径或者相对路径(相对项目根目录)
"jumpToAliasFile.webpeckConfigPath": "./webpack.config.json"

FAQ

TodoList

jumptoaliasfile's People

Contributors

wanfu920 avatar

Watchers

James Cloos 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.