Opening and Saving Files

  1. Opening a file: To open an existing file, choose File->Open from the menubar, click on the Open button on the toolbar, or press Ctrl-O. This will display the Open File dialog.

    Figure 1. Open File dialog

    Select or enter the file you want to open, then click OK. To open more than one file at once, select multiple files to open by first pressing CTRL and clicking the files in the list and press OK. If you change your mind, click Cancel to dismiss the dialog without opening the file.

    Pressing TAB in the selection entry box works as auto complete for the file path. It behaves just like the usual shell auto complete and could be very helpful when the filenames are too long to type. For selecting multiple files at once, select a file in the dialog and press CTRL once. This will bring the file selection dialog in multiple-select mode and multiple files could be selected from the list. Multiple file select mode is simlar to single file select mode, except that the file operation (for which the file selection was being done) will be performed for all the selected files.

    Figure 2. Open Multiple File dialog

    The Show Hidden, if switched on (pressed in), will make the hidden files (files starting with "."; visible in the file list. Depress it to make them hide. Anjuta fileselection dialog also has inbuild file type filter. Select the appropiate file type filter in the dialog and the file list will be limited to the files of the selected type only.

  2. Saving a file: To save a file, choose File->Save from the menubar, click on the Save button on the toolbar, or press Ctrl-S. This will save the file. If the file is new, a Save As dialog will appear. Enter a filename and click OK to save the new file with the name supplied.

  3. Saving a file with a different name: You can explicitly save a file with a new filename. To do this, choose File->Save As from the menubar. A Save As dialog will appear prompting you to enter the new filename. Enter the name and click OK.

    NoteFile save as overwrite
     

    When you use Save As with an existing file, the original is not deleted. It is left unchanged since the last save. If a file with the new filename already exists, a confirmation dialog will appear, to ensure that you want to overwrite it. Clicking Yes will overwrite the file with the file you are saving.

  4. Closing a file: To close a file, choose File->Close from the menubar, or click on the Close button on the toolbar. The file could also be closed by clicking the cross in the filename tab. This will close the current file. If the file is not saved, or is a new file, then Anjuta will prompt you to save the file before closing it.

NoteFile auto save
 

If you have enabled auto-save, it will not auto-save any new files. You must first save them manually. The same applies to the Save All option: it will not save new files, if you haven't saved them first manually. You must save a file manually before auto-save or Save All will work with it.