Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)40k · #7472

vscode-ext-commands

Skill này làm gì

Công cụ này giúp bạn thêm hoặc cập nhật lệnh trong tiện ích mở rộng VS Code. Nó đảm bảo các lệnh tuân theo quy tắc và thực hành tốt nhất của VS Code.

Khi nào nên dùng

  • ✓Khi thêm một lệnh mới vào tiện ích mở rộng VS Code.
  • ✓Khi cập nhật một lệnh hiện có trong tiện ích mở rộng.
  • ✓Khi đảm bảo các lệnh tuân theo quy ước của VS Code.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/vscode-ext-commands/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/vscode-ext-commands/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm thế nào để thêm một lệnh mới vào tiện ích mở rộng VS Code theo thực hành tốt nhất?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ kiểm tra xem lệnh có tiêu đề không, có tuân theo quy tắc đặt tên không và có hiển thị đúng không. Nó giúp sắp xếp các lệnh để hiển thị trong Command Palette hoặc Side Bar của VS Code.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

VS Code extension command contribution

This skill helps you to contribute commands in VS Code extensions

When to use this skill

Use this skill when you need to:

  • Add or update commands to your VS Code extension

Instructions

VS Code commands must always define a title, independent of its category, visibility or location. We use a few patterns for each "kind" of command, with some characteristics, described below:

  • Regular commands: By default, all commands should be accessible in the Command Palette, must define a category, and don't need an icon, unless the command will be used in the Side Bar.

  • Side Bar commands: Its name follows a special pattern, starting with underscore (_) and suffixed with #sideBar, like _extensionId.someCommand#sideBar for instance. Must define an icon, and may or may not have some rule for enablement. Side Bar exclusive commands should not be visible in the Command Palette. Contributing it to the view/title or view/item/context, we must inform order/position that it will be displayed, and we can use terms "relative to other command/button" in order to you identify the correct group to be used. Also, it's a good practice to define the condition (when) for the new command is visible.

Câu hỏi thường gặp

“Lệnh” (command) trong VS Code là gì?

Lệnh là một hành động bạn có thể thực hiện trong VS Code, như mở tệp, định dạng mã hoặc chạy một hàm cụ thể từ tiện ích mở rộng.

“Command Palette” là gì?

Đây là ô tìm kiếm trong VS Code, nơi bạn gõ để nhanh chóng tìm và thực thi lệnh.

Lệnh “Side Bar” là gì?

Đây là các lệnh xuất hiện ở những vị trí cụ thể trên Side Bar của VS Code, như nút hoặc menu, chứ không nằm trong Command Palette chung.

Chi tiết

Mô tả gốc của tác giả

Guidelines for contributing commands in VS Code extensions. Indicates naming convention, visibility, localization and other relevant attributes, following VS Code extension development guidelines, libraries and good practices

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7472
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự