Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vs-file-actionNew to Visual Studio Code? Get it now.
vs-file-action

vs-file-action

chentp0601

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

VS File Action

一个用于自定义文件操作的 VS Code 扩展,支持通过右键菜单和状态栏快速执行预定义的文件操作。

使用方法

  • 点击状态栏配置文件关联(可选)

  • 支持多种操作类型

    • VS Code 命令
    • Shell 命令
    • NPM 脚本
    • 可扩展的自定义处理器
  • 右键菜单集成

    • 在文件上右键可快速执行预定义操作
    • 根据文件类型显示不同的操作选项
  • 标题栏按钮

    • 点击标题栏按钮,对当前打开的文件,快速执行预定义操作

配置说明

在 actions.json 中配置文件操作:

{
  "fileActions": [
    {
      "fileType": ".js",
      "actions": [
        {
          "name": "格式化代码",
          "type": "vscode-command",
          "config": {
            "command": "editor.action.formatDocument"
          }
        }
      ]
    }
  ]
}

系统要求

  • Visual Studio Code ^1.98.2

安装

  1. 通过 VS Code 扩展市场安装
  2. 重启 VS Code
  3. 根据需要配置 actions.json

许可证

MIT


开始使用 VS File Action 提升您的开发效率!

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