Time for action – creating a new Vala project

We are going to create a simple Vala project to warm up. We will use this project to go through the features of Anjuta. So here we go:

  1. In Anjuta's main screen click on Create a new project.
  2. In the dialog box that appears, click on the Vala tab.
  3. Click on the GTK+ (Simple) option and then click on Continue.
  4. Fill in the project information dialog, type hello-world in the Project Name field, and fill the rest with your own preference and click on Continue.
  5. Leave the next few questions as they are (except if you really want to make changes, for example, to the path of the project). Make sure that the Use GtkBuilder for user interface checkbox is ticked. Click on Continue.
  6. If you are happy with the information shown in the confirmation dialog, hit Apply.
  7. A new project has now been created, as shown in the following screenshot:
    Time for action – creating a new Vala project

In Anjuta, we will create a project that is a container of all the files and resources that collectively make a software. We will add source codes, files, images, and so on, which are required for project building and deployment. What we have just done is that we have created a simple GTK+ project using the Vala programming language. Don't worry if you don't know what Vala is at this point and the code presented here does not make sense to you, because you are going to learn about it after this chapter.

The wizard that we just ran created a set of files, including generated source code and a user interface. These files can be considered as templates, and we will make changes to these files when we do the development.

As an IDE, Anjuta is quite full featured. It has a source code and general files' editor, a debugger, and Glade, a user interface layout designer. If you are familiar with other IDEs, you may find the view a bit different; so let's dissect this further.

The layout of the IDE is quite simple and is composed of a toolbar, an editor, and arrangeable docks. The toolbar is quite straightforward and is a familiar element. It is a shortcut of certain functions, such as file and editing operation, project running and building, and debugging operations.

There are two kinds of editors in Anjuta. The source code editor and Glade, the user interface editor. Let's talk about the first one.

Like other advanced source code editors, Anjuta provides quite a powerful editor. The notable features are:

Docks are a set of tools that contain specific functions. We can decide whether we want to show or hide the docks by toggling them individually in the View menu. Let's see a quick introduction of each dock.