Skip to content

Instantly share code, notes, and snippets.

@foxyblocks
Last active February 2, 2021 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save foxyblocks/4a1ef48cbd558f9ca6e26f8c51777e84 to your computer and use it in GitHub Desktop.
Save foxyblocks/4a1ef48cbd558f9ca6e26f8c51777e84 to your computer and use it in GitHub Desktop.
Paste this into your vscode javascript user snippets. Activate it by typing 'nim+TAB'. It will focus the path part of the import statement first which will cause autocomplete to work on the named import.
{
"Completeable named import": {
"prefix": ["nim"],
"body": ["import { ${2:value} } from \"${1:path}\";$0"],
"description": "A javascript named import statement that works with autocomplete by making you type the path statement first"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment