How to install multiple width extensions in Geany?

I use Geany mainly for Python, so I set the Indent Type to spaces and the indent width to 4. But when working with HTML, I would like to use 2 spaces.

Is there a way to tell Geany to automatically switch to 2 spaces when working with HTML documents, and not change it manually all the time?

+4
source share
1 answer

You can indent by file type or by project. To configure it using filetype, copy filetypes.filetypename from the data folder of your Geany installation to the ~ / .config / geany / filedefs folder and change

[indentation]
width=4
type=1

what do you like. See manual for more details .

, .

+2

All Articles