Most programming languages allow you to compile an individual source file. It reads the file, checks for errors and convert into an intermediate object file. Most errors happens in this step, so it is useful to compile a file after modifying it to check for errors. There are several ways to do it.
From the main menu, select Build ▸ Compile or press F9 to compile the current edited file.
From the file manager pane, select a file.
Click on the right mouse button to make the file manager context menu appears and select Build ▸ Compile to compile the file currently selected in the file manager pane.
From the project manager pane, select a source file.
Click on the right mouse button to make the project manager context menu appears and select Build ▸ Compile to compile the file currently selected in the project manager pane.
You do not need to save your file before compiling it, it will be done automatically by Anjuta if needed.
Got a comment? Spotted an error? Found the instructions unclear? Send feedback about this page.