Sublime Forum

Add command to window tab contextual menu

#1

How can I add a command to the right-click contextual menu that appears in window tabs? Right now there are the items like “Close”, “Close Other Tabs” etc… and I’d like to add an extra item.

0 Likes

#2

To do that, you will have to create a .sublime-menu file by the name of Tab Context.sublime-menu in the User directory and add your command there. To view the default one. go to command palette and View Package File -> Default/Tab Context.sublime-menu.

You can refer the official documentation for menus for details.

2 Likes