teared / VEX

Houdini add-on for Sublime Text
168 stars 23 forks source link

Does not support autocompletion with variable names? #9

Closed monci1850 closed 4 years ago

monci1850 commented 4 years ago

Hi, It seems that it cannot trigger the auto-complete with variable names, only has VEX functions.

How should I fix it in the settings?

Thanks and regards

teared commented 4 years ago

Hi @monci1850! Did you mean some Houdini environment variables or default attribute bindings like @ptnum?

Function auto-completion implemented via snippets. There are also snippets for common keywords. The full list: if, else, for, foreach, while.

There are no snippets for variables. ST3 should automatically suggest existing variable names (or any word) found in open files, so I typically just rely on that.

Variable auto-competion example GIF

monci1850 commented 4 years ago

Hi, @teared Thanks for your reply. Yes, I meant the custom variables. I don't know why my sublime does not work like your gif. The auto-completion only works for Houdini Functions. Do you know how to fix that?

sublime_vex_autocompletion

sublime_version

teared commented 4 years ago

@monci1850 sorry, I was wrong about "ST3 should automatically suggest existing variable names (or any word) found in open files". I use the AllAutocomplete add-on. It fits so seamlessly into ST3 that I completely forgot it was installed!

monci1850 commented 4 years ago

Thanks a lot. After I installed All Autocomplete, it fixed. Now it's perfect. Cheers. :)

teared commented 4 years ago

Glad it helped. Take care!