There is hotkey setting in phpstrom to open current php file in sublime. I always write codes in sublime, I need a hotkey to open current file in phpstorm for checking code syntax and xdebug code.
anyone knows how to do that?
There is hotkey setting in phpstrom to open current php file in sublime. I always write codes in sublime, I need a hotkey to open current file in phpstorm for checking code syntax and xdebug code.
anyone knows how to do that?
If you download Sidebar enhancements you can right click on a project file > Open With > Edit Applications to open up a configuration file:
[
{"id": "side-bar-files-open-with",
"children":
[
//application 1
{
"caption": "Photoshop",
"id": "side-bar-files-open-with-photoshop",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "Adobe Photoshop CS5.app", // OSX
"extensions":"psd|png|jpg|jpeg", //any file with these extensions
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
//separator
{"caption":"-"},
//application 2
{
"caption": "SeaMonkey",
"id": "side-bar-files-open-with-seamonkey",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Archivos de programa\\SeaMonkey\\seamonkey.exe", // WINNT
"extensions":"", //open all even folders
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
//application n
{
"caption": "Chrome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Documents and Settings\\tito\\local\\Datos de programa\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*", //any file with extension
"args":[]
},
"open_automatically" : false // will close the view/tab and launch the application
},
{"caption":"-"}
]
}
]
and add phpstorm to it…
There should be others available too - and there should also be addons which add right click options to actual tabs to do the same thing…
Edit: Looking into it…
Seems they use “Side Bar.sublime-menu” for the sidebar, and I know Main and Context are used for the menu at the top of the program and the right click menu while in text, respectively so there must be a Tab menu too… If so then it should be no problem to add a command to launch a program with the file or create the command using Python and then run it…
http://docs.sublimetext.info/en/latest/customization/menus.html#menu-types
File/Menu Name Description
---------------------------------------------------------------------------------------
Main Main menu
Context Context menu in the editing area
Find in Files Appears when clicking the “…” button in the Find in Files panel.
Side Bar Context menu for each node in the sidebar
Side Bar Mount Point Additional context menu items for the top-level nodes in the sidebar
Tab Context Context menu of the tab bar
Widget Context Context menu of input fields in all kinds of widgets, including Command Palette, Goto Anything, the Find panels and panels opened by plugins
There should also be a Package one which adds the entries under Tools > Packages… – Edit: *.package-menu may be for sublime text 2… not sure if 3 is backwards compatible with package-menus especially since they used xml from what I can find and the new menus use JSON.
but, the one you’d want is Tab Context…