Sublime Forum

Class definitions

#1

hi there,

fairly new sublime user here…

i’m using sublime with the Processing build system and syntax, which is great btw… (dropping my entire sketcbook folder into one sublime project was a revelation!)

anyhow, i’m wondering if there is a way one can know the fields/variables of class buried down the page somewhere…

often in the p5 editor I just copy and paste a classes constructor close by to where i initialize instances and comment it out… this way I can see what all its methods and fields are…

any way built into sublime that just might reveal these to me either by auto-complete or perhaps a rollover tooltip or something?

that said I just discovered I can split sublime into two columns, have the class on one side and the main file on the other, so this is a nice work around I guess…

thanks!

0 Likes

#2

Sounds like you are looking for Sublime Code Intel - a fantastic plugin that will grok your files and help you with auto-completing classes/functions/methods.

http://sublimecodeintel.github.io/SublimeCodeIntel/

Let me know if that is what you are looking for - you have to install the package and then another one for the specific languages you need.

0 Likes

#3

Hi there!

That looks great !

But I don’t appear to be having much luck.

I already have autocomplete from the Processing package I installed… but I assume CodeIntel should work with user created Classes/functions etc?

I tried on ST2 and the new beta which I mainly use.

I didn’t notice Java in the list of languages Code Intel supports in the package settings either… since Processing is basically java, does this mean it won’t work?

Many Thanks

0 Likes