![]() ![]() If it does not, specify the path to the corresponding executable file. If a browser was installed using a standard procedure, the alias in the Path field should point to the right location. In the Settings dialog ( Control+Alt+S), select Tools | Web Browsers and Preview. View and configure the list of browsersīy default, PhpStorm supports some of the most popular browsers, which are configured automatically, if available. Click the browser button to open the web server file URL, or Shift+LeftClick it to open the local file URL.īesides PHP scripts, the Open in Browser action is available for all other file types that are rendered by a web browser (HTML, XML, JSP, and so on). Use the browser popup in the top right part of the editor window (appears on hover). Right-click the file in the Project tool window and select Open in Browser. Open the file in the editor and press Alt F2. To render the PHP program output with a web browser or PhpStorm's built-in preview window, do one of the following: By default, it is used to preview the output of an HTML file or run and debug web applications. ![]() You can use a web browser to open any file from your project. Find the action with the name of your configured remote external tool, and assign a shortcut for it.Īfter you specify the host, port, and credentials, PhpStorm will connect to the server via SSH and run the date command, returning the output to the Run tool window in PhpStorm. Press Control+Alt+S to open the IDE settings and then select Keymap. Go to Tools | Remote Tools and the name of the added remote external tool. You can use built-in IDE macros to specify the name of the current file, paths relative to the project root, and other contextual information for the tool. For more information, refer to Remote SSH External Tools. If you don't specify the connection settings, PhpStorm will ask you for the host, port, and relevant SSH credentials every time you run the tool on the server. This dialog provides the same set of settings as when you add a local external tool, but also allows you to select a remote connection. Press Control+Alt+S to open the IDE settings and then select Tools | Remote SSH External Tools. This example demonstrates how to add date as a remote SSH external tool that is executed on a remote server over SSH and returns the current date and time on it. For more information about working with the built-in SSH terminal, refer to Run SSH terminal. Remote SSH external tools are configured similarly to local external tools, but also define the remote server on which they are executed and require credentials for connecting to it via SSH. Press Control+Alt+S to open the IDE settings and then select Plugins. Make sure the FTP/SFTP/WebDAV Connectivity and HTTP Client plugins are installed and enabled. When you run the tool, the output is displayed in the Run tool window. Find the Optimize PNG action under the External Tools node, and assign a shortcut for it. Right-click a file in the Project tool window and select Tools | Images | Optimize PNG from the context menu. To open the selected file in the newly added toolimage, do one of the following: Clicking will open the Macros dialog that lists all available macros and their values.Ĭlick OK to add the tool and then apply the changes. You can use macros that can refer to the project name, the current file path, a path to the PHP executable, and so on. In our case, OptiPNG will be run with the -o4 $FilePath$ arguments. This example uses $FilePath$ and $FileDir$. Press Control+Alt+S to open the IDE settings and then select Tools | External Tools.įor more information, refer to External Tools.Ĭlick to insert a built-in IDE macro with the name or path of the current file, path to the project source, and so on. This example demonstrates how to add OptiPNG as an external tool and use it to optimize images in your project. Remote tools are executed on a remote server over SSH. Local tools run locally on your computer. PhpStorm supports the following types of external tools: If necessary, PhpStorm will print the tool's output to the console. You can use built-in IDE macros to pass context-dependent command-line arguments to the tool, such as the current file or your project source path. By configuring it as an external tool, PhpStorm provides a dedicated action for it, which you can run from the main menu, from certain context menus, assign a shortcut to it, or run it when launching a specific run configuration. For example, your workflow may require running a specific script, code generator, analyzer, preprocessor or postprocessor, some database utility, and so on. Configure third-party command-line applications as external tools to run them from PhpStorm. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |