Code Style
Recommendations for clean code bases
Whitespace
public string get_text () {}
if (a == 5) {
return 4;
}
for (i = 0; i < maximum; i++) {}
my_function_name ();
var my_instance = new Object ();// Space before parentheses since it's normal method:
button.label = set_label_string ();
// No space before parentheses since it's gettext-localized string:
button.tooltip_text = _("Download");c = (n * 2) + 4;Indentation
Vala
Markup
Classes and Files
Comments
Variable, Class, and Function Names
Casting
Prefer Properties Over Get/Set Methods
Initialize Objects with Properites
Create Classes with Properties
Vala Namespaces
String Formatting
GTK events
Columns Per Line
Splitting Arguments Into Lines
EditorConfig
Last updated
Was this helpful?