Inserting a tab character into an editor

Answered

I've searched and just can't find an answer to this. In my code style I have "Use Tab Character" turned off since I like to have spaces in my files.

However, once in a while I need to insert a real tab character. What magic key sequence will insert a real tab character even though "Use Tab Character" is off?

In 'vi' I can use ]]> to get the result I need.

Thanks.

7 comments
Comment actions Permalink

This is an extremely old post but I am running into the same thing. Has anyone solved this?

0
Comment actions Permalink

Same for me - how to occasionally enter real tabs?

0
Comment actions Permalink

Hello,

Could you please clarify where do you need to insert tab character?

0
Comment actions Permalink

I'm writing a shell script in intellij with an here-document inside. Therefor need to insert it into "normal" text editor. Same goes for any other file i like to edit inside intellij (plain text file, other source code file,...)

Normally tabs are automatically converted into spaces when pressing <tab> key. This behavior should stay the default. And changing this back and forth via settings menu just to enter one or two "real" tab chars in text file is way to complicated...

0
Comment actions Permalink

In my case, my team has a ".tab" file that's tab delimited. Very rarely do we need to make changes to this file, but due to requirements from other teams, it must be tab delimited. Unfortunately I have to resort to vim for modifying that file instead of RubyMine since there doesn't seem to be a way to manually add a Tab character.

Thanks!

0
Comment actions Permalink

Please create new feature request on YouTrack attaching your use-cases: http://youtrack.jetbrains.com/issues/IDEA.

1
Comment actions Permalink

For anyone coming here in the future, a feature request has been added to:

https://youtrack.jetbrains.com/issue/RUBY-22707

0

Please sign in to leave a comment.