I have tried for several days now to get autocomplete working.
I have a clean install of Eclipse PDT and another with plugins like aptana and subversion, but neither works with autocomplete.
What do I have to do to get autocomplete working? Do i need some shortcut for this? In Netbeans it is working without a shortcut...and this video looks like its working in eclipse too.
Thanks for any hints and help ;)
For me, when using PDT, when I begin to type a variable, I can do Ctrl-space and I get a list of matching defined variables in my code. I believe you can get the list automatically. If you go Window » Preferences, then find PHP in the left column. Expand PHP, expand Editor, and select Code Assist. I believe Auto Activation is the option to pop up the autocomplete automatically.
I tried to follow the accepted answer with no use. Then I found answer to this question in another SO thread. Basically all you need to do is right click on the project and go to Configure > Add PHP support. If that option is grayed out then you already marked project as the PDT project.
hint: check General > Editors > File Associations > .php (.phtml,...) if default editor is "PHP Editor"
ok, i found the solution now. if anyone else has same problems here is the way:
go to window->preferences->PHP->Editor->Code Assist
This worked for me
Right click on you project in the project Explorer » Configure » Add PHP support...
Related
actually I am trying to setup SonarQube for my PHP-Project.
In my Eclipse Installation I'm trying to use the "SonarQube Issue Editor" which is shown here:
http://docs.sonarqube.org/download/attachments/6948813/sonarqube-eclipse-overview.png?version=1&modificationDate=1383220387000&api=v2&effects=drop-shadow
But I can't find this view, where you can directly edit the issue.
Everything other works well, i see the Issues-Tab and also the Rule Description.
Also tried SonarLint but there is the same like in SonarQube-Plugin.
Has anyone else have this problem, or a solution for it?
Is there maybe an other solution to edit the issues in eclipse, which are created by SonarQube?
I don't find anything else in the forum or on Google....
I Just don't get it.. Please help me
Got an answer from SonarLint developer:
SonarLint does not support associating a project with a particular SonarQube server, so there is no such editing possible at the moment. We plan to keep adding features to SonarLint so stay tuned!
Currently I try to get PHP and Zend working on Eclipse. I'm not sure if there is a plugin for Zend or something that makes it comfortable to use in Eclipse, like automatically initializing default MVC-pattern like directory structure, and so on...
I was googling for it and found some tools... First I tried to download and install the PDT from Zend (http://www.zend.com/en/company/community/pdt/), which I did, but if I create a new PHP Project, there is no option to make a "new Zend project" or something like this, so I kept on searching, and found this:
https://code.google.com/p/zend-sdk/wiki/GettingStartedTutorialInEclipse
which absolutely had no visible effect on the GUI of Eclipse. I don't know if it even worked, but it doesn't look like on the screenshots at all. On the screenshots of this projects you can see that there is a option while creating a new PHP project called "Zend Framework default project structure". Below I attached a screenshot of my "new PHP project" dialog.
So, my question is... Did I do something wrong? Or is there currently no proper Zend integration in Eclipse?
Also I want you to know that I need Eclipse for many other programming languages, so I don't really want to have a IDE for each language and it would be nice to get it to work on Eclipse somehow...
I am using Eclipse Juno... If I forgot to provide further information please let me know so I can hand them in later.
I appreciate every kind of help... Thanks in advance
I have a small problem in that I want to work with CodeIgniter, but I love to work with Dreamweaver and Eclipse because of their powerful code-hinting features. However, I want to integrate CodeIgniter into my project too, and neither of these two IDEs provide code hinting for CodeIgniter. I have tried to use the steps given in this answer Setting up codeigniter in Dreamweaver CS 5.5, but even this is not helpful.
I want to know how to configure any of the IDEs to show code hints for CodeIgniter 2.1 or above.
Very simple in Dreamwaver to autocomplete any functions in WordPress - CodeIgniter or even your custom library of code
steps are as follows:
1- in Dreamwaver open site -> Site Specific Code Hints -> (You can select wordpress-joomla-...) or even any folder like (CI folder) that you mentioned.
2- do not forget to select (scan this folder,recursive)
3- it will ask you for custom name just write any one you like "like mynewCI"
it will create a config file in your selected folder => do not remove it.
That is all.
Now press ctrl+space and enjoy.
for
Eclipse with PDT !the best I use it
for
Dreamweaver CS5 & CS5.5
Can you please let me know where do I get YII Framework plugin for Netbeans? I tried to search but I couldn't find.
Thank you very much!
The question is why do you need a plugin?
Just include Yii framework path in your project include path and all your functions will be part of autocomplete.
I use Yii with netbeans all the time and never felt the need for one. However there is another IDE, codelobster, who recently launched a plugin for yii, you might check it out but it is not as good as netbeans for advanced users, however good enough for basic usage so you might be interested.
Also for PDT there is plugin adding yii framework support. At the moment functionality is limited to creating new yii-powered project and some useful navigation (controller/action -> view, view -> view (partial render), widget->widgetClass, and some others.
More information you can find at yiiclipse home page.
There isn't one currently. That's why you couldn't find it.
actually it is available here is the link
http://www.yiiframework.com/news/69/yii-plugin-for-netbeans/
I am attempting to setup codeigniter with eclipse but am getting project errors. From what I understand this should be as simple as creating a new project in eclipse and pointing to the root directory of codeigniter. This properly loads up the codeigniter files but eclipse reports several errors. Looking into the files, it seems like the errors are coming from html files and/or files that print html. For instance, footer.php is showing up as having an error because there is a closing tag but no opening tag. Any suggestions on how to overcome this? At this point would code completion / debugging be too much to ask for as well?
UPDATE: so from what I am gathering from the response below (and searching around on the web) is that when using codeigniter with eclipse one can only take advantage of the code completion / editing features? I also noticed that I am getting NoClassDefFoundError when attempting to open some of the .php files in the eclipse project tree for editing. Surely I must be missing something and there is a way to achieve tighter integration with codeigniter and eclipse? (i would strongly prefer to stick with eclipse as opposed to switching ides) Or maybe this is an issue with my eclipse/pdt setup?
UPDATE 2: I just downloaded the latest eclipse version (galileo) and it seemed to fix all of these issues! except for debugging of course ...
you can achieve tighter integration by initializing the Ci core classes in CI_Base constructor which will also allow you to get auto complete for core classes check out these links:
http://www.gostomski.co.uk/codeigniter/getting-full-auto-complete-with-codeigniter-in-eclipse
http://hetal.wordpress.com/2009/09/04/working-with-eclipse-and-code-igniter/
you will get lots of html errors because the html has been broken into chunks
and is not a complete document
just ignore them thats what i do (there are settings somewhere that control what errors are validated against in eclipse)
i still use the php/html/js code completion and it works fine even with the errors
if you are using svn version control, add subclipse plugin, so you can do that from within eclipse too
Try Aptana.
The last time I checked I was able to do a step by step debug on it and did not see any errors in my project. It is also built on eclipse, so there is nothing new to learn.
For what it's worth, I have been able to get debugging to work using XDebug and the Netbeans IDE. If you cannot get debugging to work in Eclipse you might give Netbeans a try - if for no other reason, to have the ability to debug should you ever need to step through your application's code...