Developer Tools

elementary SDK

The fastest way to get a collection of common app dependencies and developer tools is to install elementary-sdk from Terminal:
1
sudo apt install elementary-sdk
Copied!

Build Dependencies

You can quickly install all known dependencies for a project with build-dep:
1
sudo apt build-dep <packagename>
Copied!
This installs the dependencies for the currently-released version, so it may miss dependencies for unreleased updates. In those cases, refer to the project's README.

Vala Linting

To make it easier to follow the elementary Code-Style guidelines you can use vala-lint.

GTK Inspector

The GTK Inspector is similar to a web browser's inspector, but for GTK apps. Using the Inspector can greatly speed up development, and allows you view and to test out changing properties without recompiling an app. You can also test out temporary in-app CSS.
First, make sure you have elementary-sdk installed. Then enable the Inspector keybinding:
1
gsettings set org.gtk.Settings.Debug enable-inspector-keybinding true
Copied!
Focus an app, then launch the Inspector by pressing Ctrl+Shift+I to inspect the widget beneath your cursor, or Ctrl+Shift+D to open the inspector without a widget selected.
You can also run it temporarily together with an app by running:
1
GTK_DEBUG=interactive <appname>
Copied!
Last modified 30d ago