问题
I've noticed that in Aptana 2.0 over 1.5.1 that when typing a php function, you no longer get the popup window showing the function description and it's parameters.
Does anyone know how to get this working again? As I relied on it quite heavily to remember which parameters went where. Open in PHP Manual
shortcut Shift+F2
also doesn't work either, so all I can do is open my browser and keep php.net open all the time.
Are either of these features functional? I know that Open delcaration
has never worked annoyingly, but I had the function popup in 1.5.1 perfectly.
回答1:
I use this AutoHotKey script to get the PHP manual in a new browser tab for the selected text in any program:
;Windows+p for Google's I'm feeling lucky "php + selected text"
#p::
oCB := ClipboardAll ; old Clipboard
Sendinput, ^c
GoogleSearch:= "http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=php+" Clipboard
ClipBoard := oCB ; restore ClipBoard
Run, %GoogleSearch%
return
Not ideal, but will get you the PHP manual quickly.
回答2:
First, go to Window -> Open Perspective -> Other
and check you're in the PHP perspective and not the Aptana Web one. I'm not sure if this is necessary, but it can't hurt to try.
Secondly, try right clicking on a PHP file in Aptana's navigator / project explorer and go to Open With -> (Other ->) -> PHP Editor
. This will open it with PDT, instead of Aptana's web editor (which has discontinued PHP support).
来源:https://stackoverflow.com/questions/2644056/aptana-function-definition-popups