https://github.com/dgeibi/alias-tool
https://github.com/dgeibi/alias-tool
javascript scss typescript vscode-extension
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dgeibi/alias-tool
- Owner: dgeibi
- License: mit
- Created: 2023-05-30T06:19:15.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T07:09:20.000Z (about 3 years ago)
- Last Synced: 2025-02-17T10:31:50.963Z (over 1 year ago)
- Topics: javascript, scss, typescript, vscode-extension
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=dgeibi.alias-tool
- Size: 553 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# alias-tool
## Features
1. scss: `@(import|use|forward) "@alias/path";` and `url(@alias/path.png) ` go to definition / links
2. css: `@import "@alias/path";` and `url(@alias/path.png) ` go to definition / links
3. js / ts: `import "@alias/path.png"` go to definition
4. fix `.png?query` go to definition
## Extension Settings
`alias-tool.mappings`:
```
{
"alias-tool.mappings": {
"app": "${folder}/frontend/app",
"@client": "${folder}/frontend/app",
"~@client": "${folder}/frontend/app"
}
}
```
Supported variables:
| Name | Description |
|------|-------------|
| `${folder}` | The root folder of the current file |
| `${workspace}` | The root folder of the current workspace |
## See also
- use [Path Autocomplete](https://marketplace.visualstudio.com/items?itemName=ionutvmi.path-autocomplete) for autocomplete
## Acknowledgements
- https://github.com/mihai-vlc/path-autocomplete