how can i get the quick definition lookup tooltip to stay? (2 questions)

I am on a mac platform using phpstorm 2.0.1
first of all i'm guessing that the quick definition lookup is a live preview of how a variable was assigned and what value am i correct?
next, how do i get the tooltip/popup to stay? because the only way i have access to it is if i select the variable, go to the toolbar above select quick defition looking to see it.
i know there is a shortcut to it but it would be nice if it stayed so that i can keep checking more variables.

thanks



ps:

i have one more question, the data sources under tools. I have mysql setup locally how can i input the host address, username, password, and database name
so that phpstorm can connect to it? i was looking through it and it was asking for driver selection and i dont know of any db drivers that i am using. and i also see a
protocol url of jdbc://  what does that mean? cant i put localhost instead?

also in 3rd party mysql connection software i use the socket connection to connect. how can i set this up in phpstorm? i use something like this
/Applications/MAMP/tmp/mysql/mysql.sock

thanks

3 comments
Comment actions Permalink

Hi sarmen,

first of all i'm guessing that the quick definition lookup is a live preview of how a variable was assigned and what value am i correct?

Not really -- Quick Definition Lookup makes it possible to view definition of a symbol (class, method/function, field, variable etc.) in a pop-up window. For variables you may see their values (in simple cases, e.g. $x = 13; $z = new someClass();) but for classes/functions you will see their definition.

next, how do i get the tooltip/popup to stay?

Unfortunately you cannot make it sticky/pin it.

because the only way i have access to it is if i select the variable, go to the toolbar above select quick defition looking to see it. i know there is a shortcut to it but it would be nice if it stayed so that i can keep checking more variables.

Use the shortcut. If default one is difficult to use then assign more convenient in File | Settings | Keymap

i have one more question, the data sources under tools. I have mysql setup locally how can i input the host address, username, password, and database name
so that phpstorm can connect to it? i was looking through it and it was asking for driver selection and i dont know of any db drivers that i am using. and i also see a
protocol url of jdbc://  what does that mean? cant i put localhost instead?


See the image attached to the last post in this thread: http://devnet.jetbrains.net/message/5292071#5292071

0
Comment actions Permalink

thank you Andriy for your responce,

so the reason i have to use that driver because its the only way phpstorm (as a java application) can connect to my sql right?

0
Comment actions Permalink

Well, I'm not familiar with Java that much ... but accordingly to the help pages -- yes, you have to use JDBC driver to access any database from PhpStorm.

0

Please sign in to leave a comment.