Make backspace remove all spaces inserted by tab in custom languages

Answered

I added my own file type (https://www.jetbrains.com/help/idea/creating-and-registering-file-types.html), and probably because of the global settings the tab key adds 4 spaces. When I press backspace it only removes 1 space though, which makes writing indented files a big hassle.

Is there a way to get backspace to remove all 4 spaces in a custom file type?

1
3 comments

Hi. Try using "Delete to word end" (Ctrl + Delete).

-1

I about that key combination, but it's the difference in behavior of the backspace key that annoys me.

2

We have a related ticket, please upvote: https://youtrack.jetbrains.com/issue/IDEA-170890

0

Please sign in to leave a comment.