Sublime Forum

Resizing autocompletion popup?

#1

I’m using SublimeClang for autocompletion, and I have some very long class names and function names. Is there any way to change the size of the autocompletion popup that Sublime creates? I checked every way I knew how and was unable to come up with anything.

0 Likes

Changing the size of the autocompletion panel
#2

I don’t think there is a way.

0 Likes

#3

You can vote for the feature here:

sublimetext.userecho.com/topic/8 … -be-wider/

I’m not sure the developer is taking those things in consideration though.

0 Likes

#4

I don’t expect anyone to do it really but you can modify Sublime if you are feeling brave.
300 pixels is the hardcoded width of the popup. Look for 00 00 00 00 00 C0 72 40 in the binary and replace with your wanted value (for example 00 00 00 00 00 C0 82 40 for 600 pixels).
Here is converter to convert from double to hex - gregstoll.dyndns.org/~gregstoll/floattohex/ (bytes have to be written in reverse in the binary though).
As far as I’ve checked now, there is only one match in the 32-bit Windows binary but more than one in 64-bit one (first match is the lucky one though).

The width of the popup is not dynamically adjusted to fit suggestions in Sublime so wide popup looks a bit out of place when there are only short suggestions. I guess it would be best if author would make it adjust itself.

0 Likes

#5

Why not reduce the length of these names…? :smiley:. But I appreciate that if using other libraries this may not be possible (although a number of languages can make use of aliases).

0 Likes