IntelliJ IDEA 2016.1 Help

Accessing Files on Web Servers

Once you have set up synchronization between your local application sources and the application sources on a server, you can create new folders, move, rename, and delete existing files and folders. You can also compare files and folders on the server with their local versions.

Please note, that for the sake of simplicity any file or folder under the project root is referred to as local and any file or folder on the server is referred to as remote, even if the server is installed on your machine. For details, see Web Servers: Copying Files.

Although IntelliJ IDEA supports direct editing of individual non-project files on servers, to keep your local and remote sources synchronized, configure automatic upload using the >Upload changed files automatically to the default server drop-down list in the Options dialog box.

Access to servers is controlled through server configurations of the type FTP, FTPS, SFTP, or Local or Mounted Folder.

On this page:

Accessing a Server

  1. Open the Remote Host tool window. On the main menu, choose one of the following:
    • View | Tool Windows | Remote Host
    • Tools | Deployment | Browse Remote Host
  2. Select the required server configuration from the drop-down list. The tool window shows a tree view of files and folders under the server configuration root. If no relevant server configuration is available in the drop-down list, click the Browse button browseButton.png and configure access to the server in the Deployment dialog box that opens.

    For details, see Configuring Synchronization with a Web Server.

Creating a Folder on a Server

Select the parent directory and choose Create Folder on the context menu.

Removing a File or Folder on a Server

Select the required file or folder and choose Delete on the context menu.

Renaming a File or older on a Server

Select the required file or folder in the tree view, choose Rename on the context menu, and specify the new name in the Rename dialog box that opens.

Moving a File or Folder

  1. Select the file or folder and choose Cut on the context menu.
  2. Select the folder to move the file or folder to and choose Paste on the context menu. Then confirm the changes in the Move remote Items dialog box that opens.
    Alternatively, select the required file or folder and drag it to the new location. Then confirm the changes in the Move remote Items dialog box that opens.

See Also

Last modified: 13 July 2016