# Editing files

To edit a file:

1. In the Tree pane, find the file that you want to edit. If necessary, get the desired revision to your workspace. For details, see Retrieving files from the depot.
2. Context-click the file and choose Check Out. When you open the file for edit, it is placed in a changelist.
3. Using the editor associated with the file type, make your changes. To launch the associated editor, double-click the file or context-click and choose Open With. (You might need to associate an editor with the file type. To define an editor: choose Tools>Preferences, click the Editor tab, and specify the desired editor for the file type.)
4. To place your revised version in the depot so other users can have access to it, context-click the file and choose Submit... In the Pending Changelist dialog, enter a description of your changes and submit the changelist that contains the file.

To display a file without opening it for edit, double-click the file icon.