Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Zen File UtilsNew to Visual Studio Code? Get it now.
Zen File Utils

Zen File Utils

sTevenZeng

|
61 installs
| (0) | Free
A convenient way of creating, duplicating, moving, renaming and deleting files and directories.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

主要做了两方面的优化

  1. 可以自定义排除目录,默认排除 "{dist/,node_modules/}"
  2. 当选定要操作的目录后,showInputBox 展示 placeHolder ,而不是value
    const targetPath = await window.showInputBox({
        prompt,
        // value,
        placeHolder: value,
        valueSelection,
    });
    
  3. 对用户输入的目录做了更多优化,如下,把 \ 转换成 / ;把所有的空格去掉;把开头的所有斜杠 / 去掉 (更加安全) expand(targetPath.replace(/\/g, "/").replaceAll(" ", "").replace(/^/+/, "")).map((filePath) => { 注意⚠️: 当没有修改package.json中的version 的时候,记得先删除 /out 目录,再执行编译vsce package Extension Manifest Every Visual Studio Code extension needs a manifest file package.json at the root of the extension directory structure.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft