Menu

#365 Per-project indentation ignored.

closed-fixed
nobody
None
5
2011-10-05
2009-09-04
Anonymous
No

Hi,

I just tried to assign tabs to a project as indentation (in the project properties dialog), as I use spaces normally.

I still get spaces when hitting tab.

Geany@r4149

Best regards.

Discussion

  • Thomas Martitz

    Thomas Martitz - 2009-09-04

    I just wanted to add that I posted this report (log in didn't work for some reason :(

     
  • Nick Treleaven

    Nick Treleaven - 2009-09-04

    Have you read the manual? The project or general prefs for indentation only apply when opening new documents, because docs in your current session may have different overridden indent settings.

     
  • Nick Treleaven

    Nick Treleaven - 2009-09-04
    • status: open --> pending
     
  • Thomas Martitz

    Thomas Martitz - 2009-09-04
    • status: pending --> open
     
  • Thomas Martitz

    Thomas Martitz - 2009-09-04

    Well, I didn't read that section as I couldn't find a reference to it under project management (I thought it wouldn't be up-to-date). And I still can't find it.

    But as I understand you, opening files within a project applies the indentation setting.
    However, doesn't that mean opening the project itself/restarting Geany applies the setting to each file?
    Or is the per-file setting which overrides the per-project setting also saved to disk?

     
  • Nick Treleaven

    Nick Treleaven - 2009-09-04

    You're right there's no project-indent reference (I'll write that soon), I meant the general indent section that explains documents each have their own setting:
    http://www.geany.org/manual/index.html#indentation

    You might want one document indented with tabs whilst another is open with spaces indentation. This information should be remembered in the session.

    Also I added a FAQ with this info:
    http://www.geany.org/Documentation/FAQ#QQuestions15

     
  • Nick Treleaven

    Nick Treleaven - 2009-09-04
    • status: open --> pending
     
  • Thomas Martitz

    Thomas Martitz - 2009-09-04
    • status: pending --> open
     
  • Thomas Martitz

    Thomas Martitz - 2009-09-04

    Thanks for the explaination. The current behavior sort of makes sense. I prefer spaces, but these don't work for Makefiles, so they need tabs regardless of the setting.

    I might want a "convert all open files to the new indentation setting" button then (which could exclude Makefiles) :)

     
  • Nick Treleaven

    Nick Treleaven - 2011-10-05
    • status: open --> closed-fixed
     
  • Nick Treleaven

    Nick Treleaven - 2011-10-05

    > I might want a "convert all open files to the new indentation setting" button then

    In Geany 0.20 there is a 'Project->Apply Default Indentation' command. Works for non-projects too.

     

Log in to post a comment.