seolhw / alias-skip Goto Github PK
View Code? Open in Web Editor NEW别名路径跳转插件,支持任何项目,可以自由配置映射规则,自由配置可缺省后缀名列表
License: MIT License
别名路径跳转插件,支持任何项目,可以自由配置映射规则,自由配置可缺省后缀名列表
License: MIT License
Linux 下好像不工作,
~/.config/Code/User/settings.json
"alias-skip.mappings": {
"@comp": "/src/components",
"~@assets": "/src/assets",
"@views": "/src/views",
"@api": "/src/api",
"@/config": "/src/config",
"@config": "/src/config",
"core": "/src/core",
"compiler": "/src/compiler",
"shared": "/src/shared",
"web": "/src/platforms/web",
"weex": "/src/platforms/weex",
"server": "/src/server",
"entries": "/src/entries",
"sfc": "/src/sfc"
},
我尝试了
禁用所有插件, 除了 “别名路径跳转” 和 "Vetur"
我期望
不知道是不是系统引起的原因,按道理 Electron 不应该存在跨平台问题。 但是确实没有正常工作。
系统信息
System:
OS: Linux 5.15 Ubuntu 22.04.1 LTS 22.04.1 LTS (Jammy Jellyfish)
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Memory: 17.06 GB / 31.26 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
Yarn: 1.22.17 - ~/Desktop/workspace/html_new_lapis/node_modules/.bin/yarn
npm: 8.11.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
Browsers:
Chrome: 104.0.5112.101
Firefox: 103.0.2
npmPackages:
vue: ^2.6.14 => 2.6.14
好用
router 中引入的 vue 文件 以 @ 开头不能跳转到对应文件
import(/* webpackChunkName: "Material" */ '@/views/material/TabKnowledgeEdit')
在工作目录配置了settings.json 但是没办法跳转
老哥,scss文件里的@import能扩展跳转功能吗
主要是想针对less文件配置别名跳转,的确配置后成功了,点击了会成功跳转目标文件
但也会同时提示:
无法打开xxxx.less 无法读取文件 然后展示的path是:原始路径+别名+目标路径的结构
看了眼代码,似乎是在hover事件里添加了一些处理.有没有可能,原本vscode支持的跳转(点击触发的部分)与这个产生了重叠,同时触发?
如css文件:
background-image: url(~@/assets/img/h5/headerBg.png);
配置:
"alias-skip.mappings": {
"~@":"/src"
}
jsconfig.json中
"paths": {
"@/": ["src/"],
"~@/": ["src/"]
}
对css文件中~@插件不能生效。
能不能@后直接出提示而不需要再 /
background:url(images/login/bg.jpg); 这种不支持跳转/images/login/bg.jpg'); 这样才支持,而样式中别名后面不能加斜杠
background:url('
改进一下?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.