Sublime Forum

Delete key bug

#1

If i have a line such as the following

// __________xxx yyy zzz

where the underscores are spaces and i put my cursror on the first / and hit delete twice then the two slashes are delted. If i press delete one more time i dont get a deletion of a single space, i get a deletion of all spaces up to the next tab stop or soimething.

I have “convert tabs to spaces” set and it would be greatly appreciated if sublime text could be modified to delete a single space for eacy key-press in this instance. I am constantly having to hit space space space to realign code that i had commented out but am now reinstating.

If i hit slah slash space to comment out some code I sould not have to hit delete, delete, delete, space, space to make things line up again when uncommenting that code.

0 Likes

#2

You can use the "use_tab_stops" setting to control this behavior. Note that the easiest way to comment/uncomment code is to use the Edit > Comment > Toggle Comment keyboard shortcut (ctrl+/), which will do all of that for you.

2 Likes