Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Easy Import HookNew to Visual Studio Code? Get it now.
Easy Import Hook

Easy Import Hook

dddssw

|
16 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

功能

统一管理 hooks

演示

文件内容示例

//注释
export function a(){
   //foo的注释
   const foo
   return {foo}
}

alt text

hover 显示注释,注释需要写在导出内容的上面,// /*都可,多行也会自动合并

alt text

点击 hook 函数生成

alt text

过滤选中

alt text alt text

注意

没显示出来可能是语法错误,如果文件变化使用刷新按钮(悬浮)

暂时hook存放的路径是写死的,在src下的hooks文件夹下

暂时只支持ts文件,js没有兼容

暂不支持函数表达式的写法,建议与export写在一起

//暂不支持
const a = () => {};
export default a;
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft