答案1
答案是在插件文件夹中创建一个名为“Tab Context.sublime-menu”的文件并向其中添加菜单项。
例如问题中图形显示的默认选项如下:
[ { "command": "close_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close" }, { "command": "close_others_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Other Tabs" }, { "command": "close_to_right_by_index", "args": { "group": -1, "index": -1 }, "caption": "Close Tabs to the Right" }, { "caption": "-" }, { "command": "new_file", "caption": "New File" }, { "command": "prompt_open_file", "caption": "Open File" } ]
标签上下文.sublime-menuC:\Users\<user name>\AppData\Roaming\Sublime Text 3\Packages\<plugin>\
在此示例中位于。