Window -> Preferences -> PHP -> Editor -> Code Assist -> Auto activation triggers for PHP
So, if you want to make code assistant triggers on any key, here is what you can do.
Eclipse PDT stores the settings you make in the workspace.
Go to
/path/to/my/workspace/.metadata/.plugins/org.eclipse.core.runtime/.settings/
and search for this 2 files:
org.eclipse.php.core.prefs
org.eclipse.php.ui.prefs
org.eclipse.php.ui.prefs
Open them with a text editor of your choice and change the line
contentAssistAutoactivationTriggersPHP=$\:>_
with
contentAssistAutoactivationTriggersPHP=abcdefghijklmnopqrstuvxyz$\:>_
on both files.
There might be a chance that those files do not exists. In this case create them.
Here is the content of my files in case you want to use this settings:
org.eclipse.php.core.prefs
#Mon Feb 02 10:06:50 EET 2009
contentAssistAutoactivationTriggersPHP=abcdefghijklmnopqrstuvxyz$\:>_
eclipse.preferences.version=1
contentAssistAutoinsert=false
org.eclipse.php.core.workspaceDefaultLocale=en_US
contentAssistShowVariablesFromOtherFiles=true
contentAssistAutoactivationTriggersPHP=abcdefghijklmnopqrstuvxyz$\:>_
eclipse.preferences.version=1
contentAssistAutoinsert=false
org.eclipse.php.core.workspaceDefaultLocale=en_US
contentAssistShowVariablesFromOtherFiles=true
org.eclipse.php.ui.prefs
#Mon Jan 26 17:49:44 EET 2009
foldFunctions=true
browsingProjectstoeditor=false
useQuickDiffPrefPage=true
foldPHPDoc=true
contentAssistAutoactivationTriggersPHP=abcdefghijklmnopqrstuvxyz$\:>_
useAnnotationsPrefPage=true
contentAssistAutoinsert=false
contentAssistAutoactivationDelay=10
org.eclipse.php.core.workspaceDefaultLocale=en_US
eclipse.preferences.version=1
ChangeOutlineModeAction.selectedMode=1
foldFunctions=true
browsingProjectstoeditor=false
useQuickDiffPrefPage=true
foldPHPDoc=true
contentAssistAutoactivationTriggersPHP=abcdefghijklmnopqrstuvxyz$\:>_
useAnnotationsPrefPage=true
contentAssistAutoinsert=false
contentAssistAutoactivationDelay=10
org.eclipse.php.core.workspaceDefaultLocale=en_US
eclipse.preferences.version=1
ChangeOutlineModeAction.selectedMode=1
NOTE: This settings are not recommended by Eclipse development team because they might slow down your IDE. I used them for 6 month now and everything is running smooth.
NOTE: I use only non-caps characters for triggering the code assistant and this is just enough for me. Add more if you need.
NOTE: I'm using Eclipse Europe which is already and old version but is performing grate.
No comments:
Post a Comment