Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Definition ResolveNew to Visual Studio Code? Get it now.
Definition Resolve

Definition Resolve

talltotal

|
1,449 installs
| (0) | Free
跳转至定义,通过resolve配置,处理路径快速跳转。(同 webpack 配置的 resolve)
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Definition Resolve

跳转至定义,通过配置,处理路径快速跳转。(同 webpack 配置的 resolve)

默认读取工程根目录的.resolve.conf.js文件

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • DefinitionResolve.open: true

    Whether to turn on Definition Resolve.
    是否开启

  • DefinitionResolve.config.file.relative.path: ".resolve.conf.js"

    Relative path of resolve config file.(support‘js’/‘json’)
    配置文件的相对路径

  • DefinitionResolve.default.resolve:

    Default resolve config.($root$ as workspace)
    在没有配置文件的情况下,使用的默认配置,其中可用‘$root$’作为工程根目录的占位符

    {
        "extensions": [".js", ".vue", ".json"],
        "alias": {
            "vue$": "vue/dist/vue.esm.js",
            "@": "$root$/src"
        }
    }
    

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft