Editor

 Description

You can open a file for editing in an internal built-in editor, in the default external application associated in the operating system with the type of the file or with an external application installed in the operating system and specified by the path to its executable launcher. There are default associations between frequently used file types and the internal editors but new associations can be added and the default associations can be modified with the action Open with available in the Repository view, the Working Copy view and the History view which opens the following dialog:

 

Figure 3.48. The editor association dialog

The editor association dialog

The internal editor can be accessed either from the Working copy view or from the Synchronize view. The editor can also be used from the History view to view a selected revision of a file. In this case there are no edits allowed.

 

Figure 3.49. Editor View

Editor View


Only one file can be edited in an internal editor at a time. If you try to open another file it will be opened in the same editor window. The editor has syntax highlighting for known file types. This means that a different color will be used for each type of recognized token in the file. If the content type of the file is unknown you will be prompted to choose the proper way the file should be opened.

After editing the content of the file in an internal editor you can save it to disk by using the Save action from the File menu or the Ctrl + S key shortcut. After saving your file you can see the file changed status into Working copy view and Synchronize view.