# Edit individual files on remote hosts

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/help/go/2026.3/llms.txt).

After you [configure a deployment server](configuring-synchronization-with-a-remote-host.html), you can open a remote file in the editor without adding it to your project. GoLand edits a temporary local copy. Upload the file to save your changes on the server.

Debugging, refactorings, and some other GoLand features are not supported for such files. To take advantage of advanced GoLand functionality, consider including the files in a project. For more information, refer to [Access files on servers](accessing-files-on-remote-hosts.html).

Procedure: Edit a file on a remote host

1. If you have set a [default remote host](configuring-synchronization-with-a-remote-host.html#default_server), select Deployment | Edit Remote File from the context menu in the [Project tool window](project-tool-window.html),  Commit tool window (`Alt+0` (Windows), `⌘ 0` (macOS), `⌘ 0` (IntelliJ IDEA Classic (macOS)), `⌘ 0` (macOS System Shortcuts), `Alt+0` (XWin), `Alt+0` (GNOME), `Alt+0` (KDE), `Alt+0` (Emacs), `Alt+0` (Sublime Text), `⌘ 0` (Sublime Text (macOS)), `Alt+0` (VSCode), `⌘ 0` (VSCode (macOS)) ) , or the code editor.

Otherwise, do the following:

1.   Open the [Remote Host tool window](remote-host-tool-window.html) by choosing `Tools | Deployment | Browse Remote Host`  or `View | Tool Windows | Remote Host`  from the main menu.

2.   Select the required deployment server from the list. The tool window shows a tree view of files and folders under the server root. If no relevant server is available in the list, click ![the Browse button](https://resources.jetbrains.com/help/img/idea/2026.3/app.general.ellipsis.svg), and in the Deployment dialog that opens [configure access to the required server](configuring-synchronization-with-a-remote-host.html).

3.

Double-click the file or select Edit Remote File from the context menu.

2. The file opens in the GoLand editor, without being added or downloaded to the local project.

When you work with a remote file, a special toolbar appears at the top of the editor, showing the editing status (The file is identical to remote one  or The file has been modified. Upload?).

Remote files can be distinguished from local ones by the annotation that includes the server name .

3. When you are done editing the file, do one of the following:

* To upload the file to the remote host, click ![the Upload current remote file button](https://resources.jetbrains.com/help/img/idea/2026.3/app.expui.general.upload.svg) or press `Alt+Shift+Q` (Windows), `⌥ ⇧ Q` (macOS), `⌥ ⇧ Q` (IntelliJ IDEA Classic (macOS)), `⌥ ⇧ Q` (macOS System Shortcuts), `Alt+Shift+Q` (XWin), `Alt+Shift+Q` (GNOME), `Alt+Shift+Q` (KDE), `Alt+Shift+Q` (Emacs), `Alt+Shift+Q` (Sublime Text), `⌥ ⇧ Q` (Sublime Text (macOS)), `Alt+Shift+Q` (VSCode), `⌥ ⇧ Q` (VSCode (macOS)).

* To compare the currently opened file with the last uploaded version, click ![the Compare with last uploaded version button](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.vcs.diff.svg). The files are opened in the GoLand [Diff Viewer for files](differences-viewer.html).

* To discard the changes introduced to the file after the last upload, click ![](https://resources.jetbrains.com/help/img/idea/2026.3/app-client.expui.vcs.revert.svg).

> **Warning:**
> Upload your changes before closing the file or project. If you close a file with changes that you have not uploaded, GoLand prompts you to reopen it or discard the changes. When closing the project, you can cancel to keep editing.

## See also

### Procedures

[Deployment](deploying-applications.html)

### Reference

[Remote Host tool window](remote-host-tool-window.html)

