Language specific indentation/tab width?

Discussion Forums discussion Language specific indentation/tab width?

This topic contains 0 voices and has 3 replies.

Viewing 4 posts - 1 through 4 (of 4 total)
Author Posts
Author Posts
February 2, 2009 at 5:54 pm #531

mark42
Member

Perhaps this is right under my nose and I’m just not seeing it, but does PN have the capability of setting indentation/tab width by language? Python’s convention is 4 spaces per tab/indentation level, but most other languages that we use here have in-house convention of 2 spaces per indent. As far as I can tell, to change this I’d have to go to Tools -> Options -> General -> Defaults and change the global setting every time I switch between files.

If PN does not have this language-specific option and if it’s not a feature likely to be added, would it be possible to have menu subitem for quickly changing the global setting? I’m thinking of SciTE here, in which there is "Change Indentation Settings…" under Tools.

February 3, 2009 at 2:33 pm #16224

simon
Key Master

Sorry, not currently a per-language option, but there is another way to change it:

Alt-Enter, Tab x 3, 2, Enter

There’s an open feature request to make this per-language override possible, which will definitely be done at some point in the near future!

March 1, 2009 at 9:39 pm #16225

castorp
Member

I second that, it would be greate to control all tab related settings per language/scheme

June 17, 2012 at 7:43 am #16226

Steef
Member

When is this to be implemented ?

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.