Does anybody know if it is possible to change the colors of the names of the columns (attributes) when writing a query in QGIS? (e.g. when selecting by expression in the attributes table).
In the default user interface theme, the field names in the expression builder are
- blue when typed without double quotation marks (
- yellow when typed with double quotation marks: (
If you switch to "night mapping" theme (settings > options > general > application > UI Theme), the field names will be
- green when typed without double quotation marks
- greenish-yellow when typed with double quotation marks
The plugin "Load QSS - UI themes" provides a way to add different user interface themes. I tried a few of the themes that come with this plugin. In the Expression Builder, they all seem to use the same color settings as the UI Theme you have set in Options.
In QGIS 3, the expression builder allows you to type field names with or without double quotations. But field names with spaces must be put in double quotes. It's generally not a good idea to make a field name with spaces; use camel caps (no spaces, capitalize the first letter of each word, like this:
FieldName) or substitute an underscore for the space (like this:
Some functions require field name input in single quotes (like this:
'fieldname'). See the Expression Builder Help section for each function.