Differences

This shows you the differences between the selected revisions of the page.

2018-10-21 2018-10-22
no summary (80.187.119.154) (hidden) (untrusted) Restored revision 1486562514. Undoing revisions 1540154260, 1540154321, 1540154360, 1540154422. (martin) (hidden)
Line 1: Line 1:
-**Bold Text**====== Editing/Opening Files ======+====== Editing/Opening Files ======
WinSCP allows you to edit/open remote file using editor or associated application on local machine. To do so it needs to download the remote file to [[temp_folder|temporary directory]] first. Then it opens the file in your preferred editor or associated application. Once you change the file, WinSCP uploads it back. With [[ui_commander|Commander interface]] you can even edit/open local files, but most of this chapter covers editing remote files only. WinSCP allows you to edit/open remote file using editor or associated application on local machine. To do so it needs to download the remote file to [[temp_folder|temporary directory]] first. Then it opens the file in your preferred editor or associated application. Once you change the file, WinSCP uploads it back. With [[ui_commander|Commander interface]] you can even edit/open local files, but most of this chapter covers editing remote files only.
Line 12: Line 12:
Especially when the files are opened in an external editor, user can easily change two files at once. For this reason WinSCP must upload the files back using [[transfer_queue|background transfer/queue]] to allow several uploads at once. Especially when the files are opened in an external editor, user can easily change two files at once. For this reason WinSCP must upload the files back using [[transfer_queue|background transfer/queue]] to allow several uploads at once.
-//Italic Text//===== [[external_editors]] External Editors =====+===== [[external_editors]] External Editors =====
For basic editing WinSCP offers a simple [[ui_editor|integrated text editor]]. For advanced editing you will probably want to [[ui_pref_editor|configure your favorite editor]]. For basic editing WinSCP offers a simple [[ui_editor|integrated text editor]]. For advanced editing you will probably want to [[ui_pref_editor|configure your favorite editor]].
Line 35: Line 35:
If you want to edit binary files you need to use [[#external_editors|external editor]] that supports binary files (and make sure preference option //[[ui_editor_preferences#external|Force text transfer mode for files edited in external editor]]// is unchecked). The configured [[transfer_mode|transfer mode]] will then be used even for transfers to/from external editor. Note that if you have configured [[transfer_mode|binary transfer]] mode, your external editor must support [[transfer_mode#eol|server-side format of text files]] (Unix format usually), if you still want to edit them. If you want to edit binary files you need to use [[#external_editors|external editor]] that supports binary files (and make sure preference option //[[ui_editor_preferences#external|Force text transfer mode for files edited in external editor]]// is unchecked). The configured [[transfer_mode|transfer mode]] will then be used even for transfers to/from external editor. Note that if you have configured [[transfer_mode|binary transfer]] mode, your external editor must support [[transfer_mode#eol|server-side format of text files]] (Unix format usually), if you still want to edit them.
-**Bold Text**===== Transfer Settings when Editing Files =====+===== Transfer Settings when Editing Files =====
When remote file is downloaded to editor or uploaded from editor, default [[transfer_settings|transfer settings]] or settings of active [[transfer_settings#presets|preset]] are used, with some exceptions: When remote file is downloaded to editor or uploaded from editor, default [[transfer_settings|transfer settings]] or settings of active [[transfer_settings#presets|preset]] are used, with some exceptions:
  * //Filename modification// option is forced to "No change".   * //Filename modification// option is forced to "No change".
Line 43: Line 43:
  * [[resume|Transfer resume support]] is disabled.   * [[resume|Transfer resume support]] is disabled.
-  * Unordered List Item 
===== Editing from Command-line ===== ===== Editing from Command-line =====
You can use command line parameter ''[[commandline#operations|/edit]]'' to make WinSCP open a remote file in [[ui_editor|internal editor]]. This way, you can for example create a desktop shortcut that opens a remote file as easily as a local one. You can use command line parameter ''[[commandline#operations|/edit]]'' to make WinSCP open a remote file in [[ui_editor|internal editor]]. This way, you can for example create a desktop shortcut that opens a remote file as easily as a local one.

Last modified: by martin