Skip to content

Holdesher/Import-At-Top

Repository files navigation


Version   Rating   Installs   Downloads

✅ This extension is in beta testing. If you find a bug please report it - holdesher@ro.ru


https://i.imgur.com/dBaSKWF.gif


React
React
JavaScript
JS
TypeScript
TS
NestJS
NestJS

https://i.imgur.com/dBaSKWF.gif


description

Win

Ctrl + Alt + S

MacOS & Linux

Command + Option + S

https://i.imgur.com/dBaSKWF.gif


description

"import-at-top.config": [
	{
		"triggerDefault": ["React"],
		"triggerExport": ["useState", "useId", "useRef"],
		"package": "react"
	}
]

importDefault - this is a list of words (for importing default values) that the extension will respond to when importing your dependencies: import React from 'react'.


importExport - this is a list of words (for importing a named value) that the extension will respond to to import your dependencies: import { useState } from 'react'.


package - the name of the path or package from which the import will go.


https://i.imgur.com/dBaSKWF.gif


description
description