Sublime Forum

Quick panel display of tab character

#1

In ST2, quick panel displays tabs (0x9) as expanded spaces. In ST3, it displays tabs as a white square □

This is a problem because with files that uses tabs for indents, goto @ gives you this

 class1
 □func1
 □func2
 □□funcA

instead of this in ST2

 class1
    func1
    func2
         funcA

Is there a setting I can change?

Thanks

1 Like

#2

use a regex replacement in the symbol index / tmPreferences of whatever syntax is affected to replace tabs with the desired number of spaces?

0 Likes

#3

I have the same problem. Here is a screenshot. Sublime Text 3, Stable Channel, build 3126

0 Likes

#4
window.show_quick_panel(['hello', '\tworld'], None)

seems fine to me:

0 Likes

#5

Yes, I know it works fine on many other computers. But how to fix it on mine?

0 Likes

#6

are you using DPI scaling?

I can confirm that by changing dpi_scale in my settings (from 1.0 to 1.2 for example), I also get the same visual bug, so it looks like it is this issue.

0 Likes

#7

Yes I do. I use 4K monitor and set the windows display scale at 125% (standard display settings dialog).

0 Likes

#8

Same here. That’s the problem then.

0 Likes