我想在 Sublime Text 2 的顶部栏菜单中添加许多功能按钮。我该怎么做?
我需要添加的按钮:
最佳答案
您可以添加菜单项,但不能添加 UI 按钮。话虽如此,您可以通过在顶层使用命令创建菜单条目而不是嵌套条目来模拟您想要的行为。为此,创建一个 Main.sublime-menu
您的 Packages/User
中的文件文件夹。将以下内容插入到文件中。
[
{
"caption": "Save",
"command": "save"
},
{
"caption": "Save As",
"command": "prompt_save_as"
},
{
"caption": "Open File",
"command": "prompt_open_file"
}
]
关于button - 如何在 sublime text 2 上添加按钮?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21371663/