Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/talltotal/vscode-resolve

vscode‘跳转至定义’插件
https://github.com/talltotal/vscode-resolve

go-to-definition vscode-extension

Last synced: about 4 hours ago
JSON representation

vscode‘跳转至定义’插件

Awesome Lists containing this project

README

        

# Definition Resolve

跳转至定义,通过配置,处理路径快速跳转。(同 webpack 配置的 resolve)
> 默认读取工程根目录的`.resolve.conf.js`文件

![](./decs.jpg)

## 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$’作为工程根目录的占位符
```json
{
"extensions": [".js", ".vue", ".json"],
"alias": {
"vue$": "vue/dist/vue.esm.js",
"@": "$root$/src"
}
}
```

**Enjoy!**