https://github.com/toasterofbread/vscode-kotlin-importer
A simple VSCode extension that quickly adds import lines for Kotlin keywords
https://github.com/toasterofbread/vscode-kotlin-importer
Last synced: 6 months ago
JSON representation
A simple VSCode extension that quickly adds import lines for Kotlin keywords
- Host: GitHub
- URL: https://github.com/toasterofbread/vscode-kotlin-importer
- Owner: toasterofbread
- License: mit
- Created: 2024-02-22T18:53:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-05T19:42:26.000Z (almost 2 years ago)
- Last Synced: 2024-05-05T20:38:40.875Z (almost 2 years ago)
- Language: TypeScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-kotlin-importer
An simple extension I wrote in an hour or two that quickly adds import lines for Kotlin keywords by keeping an index of existing
imports in the current workspace.
Imports can be added through the context menu action while a keyword is selected, or by triggering the import command and inputting the desired keyword.
If multiple imports are available, a list of options will be shown to select from. If only a single import is found, it will be added automatically.
Imports are inserted below the existing import line that has the closest match to the new import, or otherwise to the bottom of the imports list.