[Geany-Users] geany 1.36 and auto-indenting ym/yaml files

e.antonoff at yahoo.com e.antonoff at xxxxx
Thu Oct 7 08:30:46 UTC 2021


 It can be done:
Tools > Configuration files > Filetype Configuration > Miscellaneous > filetypes.yaml
Then uncommend and edit:
[indentation]width=2# 0 is spaces, 1 is tabs, 2 is tab & spacestype=0
Save the changes. Default width is usually 4. To be honest, I did this for the Ruby filetype, not for YAML. The company I work for never told me if they want the YAML to be 2 spaces, we have rules only for the Ruby code.
After the changes, you could do:
Tools > Reload Configuration.
Or simply close Geany and open it again, if reloading don't give the desired effect.

Eugene    On Thursday, October 7, 2021, 05:03:27 a.m. GMT+3, H <agents at meddatainc.com> wrote:  
 
 I am using geany 1.36 under CentOS 7. Is it possible to configure geany so that it automatically indents code when creating/editing yml/yaml files?

_______________________________________________
Users mailing list
Users at lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/users/attachments/20211007/6026579f/attachment.htm>


More information about the Users mailing list