Terminal & files

Inspect, edit and compare files

Review text changes and binary data without confusing an open editor with a saved remote file.

2 min read User guide

View and edit remote files safely

Whether you are tweaking a web server configuration file, reading application logs or comparing two versions of a script, LeapTerm lets you inspect and edit text files right inside your workspace without fighting command-line editors like vim or nano.

File Viewer showing syntax-highlighted code and search controls

If you only need to read a file, format JSON, view a CSV spreadsheet or watch a video, open it in the File Viewer. When you are ready to make changes or compare versions, use the built-in editor and diff tools inside SFTP Files.

Edit a remote file or compare versions

  1. Open SFTP Files in your connected workspace and double-check the server name and folder path at the top.
  2. Select the file you want to edit, or choose the Compare action to compare the remote file side by side with a file on your computer.
  3. In the comparison (diff) view, additions are highlighted in green and removals in red so you can review every changed line in context.
  4. When editing a file, make your changes and click Save—remember that typing in the editor only changes your local draft until you click Save and see confirmation that the server wrote the file.
  5. Before restarting a critical service on your server, reopen or reload the file to make sure your saved changes are in place.

Unified diff view comparing file changes side by side

What happens if a file changes on the server while you are editing

If you save a draft across devices or lose your connection while editing, someone else (or a running program) might update that same file on the server before you finish. To keep you from accidentally overwriting newer server changes, LeapTerm alerts you and shows both Original base and Current remote:

  1. Copy any new lines from your draft that you want to keep.
  2. Click Reload remote and confirm Discard draft and reload to load the latest version from the server.
  3. Paste your edits into the fresh file and click Save.

Inspecting binary files and keeping secrets private

Not every file on a server is plain text. If you open a compiled program or binary data file, use Hex View to inspect its bytes safely instead of trying to edit and save it as text.

Also keep in mind that configuration files like .env often hold database passwords or API keys—be careful before opening them while screen sharing in a Live Share room or pasting their contents into an external chat.

Features vary by release, platform and connection route. Check availability before planning your setup.

Search the guides

Search runs in your browser.

Your search stays here. No account or external search service.