編輯器動作

編輯器動作可以顯示在編輯器工具列中。您可以將圖示新增為快速動作,或是在溢位選單(...)下新增功能表項目。

✔️ 建議做法

  • 僅在語境合適時顯示
  • 使用圖示庫中的圖示
  • 針對次要動作使用溢位選單

❌ 不建議做法

  • 新增多個圖示
  • 新增自訂顏色
  • 使用表情符號

Editor Actions

此範例來自 GitHub Pull Requests and Issues 擴充功能,它會開啟差異檢視,且僅在有變更的檔案上顯示。

© . This site is unofficial and not affiliated with Microsoft.