Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Path Completion in fileTreeNew to Visual Studio Code? Get it now.
Path Completion in fileTree

Path Completion in fileTree

Feishu Technology

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

Path Completion in fileTree

根据文件结构下文件导出的 export name 给予补全,目前支持根目录下的 utils / element / constant / mock 四个文件路径;同时支持typeScript项目和javaScript的项目

pic

安装

  1. 打开编辑器,Ctrl + Shift + X,搜索 Path Completion in fileTree。
  2. 点击 install

使用

可以参考上图文件结构,将vscode打开根目录在<rootPath>

├── <rootPath>
│   ├── constant
│   │   └── page.ts
│   ├── element
│   │   └── test001_list.ts
│   ├── mock
│   │   └── test.ts
│   └── utils
│       ├── a
│       │   └── b
│       │       └── c.ts
│       └── command.ts

在该<rootPath>目录下输入对应文件目录即可获取相应的补全 eg:

// utils/a/b/c.ts
export default {
		d: 'd',
}

如果你需要获取utils/a/b/c.ts下的d,你可以在<rootPath>目录下的任意文件中输出以下代码即可获取补全

utils.
utils.a
utils.a.b
utils.a.b.c

pic

建议配套

file-tree-loader

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft