Soft tabs (virtual tabs?)

When I write python code I prefer to use whitespace instead of tabs.  I like that I can specify the indentation level when I have the editor set to whitespace instead of tabs, however it doesn't respect this setting when using the backspace key.  I've been hunting for a setting in the code style section but have not been able to find one that works like this.  I'm coming from TextMate and it has a settings call soft tabs that does exactly this (it also shows these characters with hidden characters turned on instead of spaces.)  Is this something that could be added to the IDE if it's not already available?

Thanks,

Charlie

4 comments

Hi Charlie,

When I write python code I prefer to use whitespace instead of tabs.  I like that I can specify the indentation level when I have the editor set to whitespace instead of tabs, however it doesn't respect this setting when using the backspace key.  I've been hunting for a setting in the code style section but have not been able to find one that works like this.  I'm coming from TextMate and it has a settings call soft tabs that does exactly this (it also shows these characters with hidden characters turned on instead of spaces.)  Is this something that could be added to the IDE if it's not already available?

Actually PyCharm has this functionality, but it is only limited to empty lines (strange decision).

However I've created an issue: http://youtrack.jetbrains.net/issue/PY-853

Feel free to vote, comment and track progress.

Regards,

Oleg

0

Actually PyCharm has this functionality, but it is only limited to empty lines (strange decision).

I just verified this behavior only works in .py files, but not in .html, .json, etc...  In my opinion this really should be a feature that works across all file types if they are set to use whitespace instead of tabs.

However I've created an issue: http://youtrack.jetbrains.net/issue/PY-853

Feel free to vote, comment and track progress.

0

Hi Charlie,

Doesn't look like there's much to track since you already fixed the ticket!  Should I reopen it to add this functionality to all file types or should I create a new feature request ticket?

You'd better create new ticket and post it's link here to make it available for forum searching.

Regards,

Oleg

0
You'd better create new ticket and post it's link here to make it available for forum searching.

Here's the link.

http://youtrack.jetbrains.net/issue/IDEA-54131

Thanks!

0

Please sign in to leave a comment.