Questions tagged [eclipse-pdt]

Eclipse PDT is an open source IDE for PHP developers. Eclipse PDT offers code completion and templates, integration with Zend Debugger and XDebug, etc.

Eclipse PDT (PHP Development Tools) is an open source IDE for professional PHP developers.

Features

  • Code Assist
  • Code Completion
  • Code Folding
  • Code Formatting
  • Mark Occurrences
  • PHP 5 & 7 Support (including 5.3 & 5.4 traits, namespaces, etc.)
  • Refactoring
  • Syntax Colouring
  • Type and Method Navigation
  • Type Hierarchy

And many more.

Resources

624 questions
12
votes
2 answers

PHP: Type hints for fields with Eclipse PDT

Using Eclipse + PDT, I know that you can specify the return type of a method or the type of a variable within a method via type hints. How about class fields? Can I declare the type of a field in order to enable autocompletion for that variable? I…
Silvio Donnini
  • 3,233
  • 2
  • 28
  • 29
12
votes
1 answer

How to see .htaccess files in Eclipse PDT?

I can't seem to find/view .htaccess files in Eclipse PDT. I looked in the preferences, but couldn't find any relevant options when it came to hiding files. How can I enable this in Eclipse so I can edit .htaccess files?
Kevin
  • 13,153
  • 11
  • 60
  • 87
12
votes
3 answers

Eclipse Luna dark theme doesn't show JS properly

I downloaded the Eclipse Luna version of PDT today and switched to the dark theme. All my PHP files are now displayed with very clear syntax highlighting in the dark theme. However, when I load my javascript files, it's impossible to see the text in…
JohnP
  • 49,507
  • 13
  • 108
  • 140
11
votes
8 answers

PayPal PDT is not Returning a tx value in the Query String

I've gone through the (not so helpful) PayPal docs and can't find an easy answer to this problem. When the user returns from PayPal, the URL does not contain a query string and thus I do not receive the 'tx' value (or any other value for that…
Dallas Clark
  • 4,064
  • 3
  • 30
  • 36
11
votes
1 answer

Format only selected code in eclipse

As the title says, I want to format only selected lines of code. I know by pressing Ctrl + Shift +F formats whole file. Formatting whole file is not good options as it will create lots of conflicts when I will commit the file. I changed a portion…
Arif
  • 1,601
  • 2
  • 21
  • 34
11
votes
6 answers

Code completion/assist for built-in PHP functions in Eclipse PDT

I'm writing PHP code in Eclipse PDT (PHP Development Tools), but for some reason it doesn't auto-complete PHP built-in functions, such as "isset()". This is unlike Komodo which also shows the arguments the function recieves. The only thing Eclipse…
John Terry
10
votes
2 answers

What's the difference between the Build Path and the Include Path in Eclipse PDT?

What's the difference between the Build Path and the Include Path in Eclipse PDT?
Gerard
10
votes
6 answers

Automatic indentation on Eclipse PDT when copy-pasting

This is a simple question : Is there any automatic indentation alignment on Eclipse PDT when you do a copy-paste ? Because it doesn't work on my installation (raw copy-paste), but maybe this is because I use tabs instead of spaces, so I want to know…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
10
votes
3 answers

How to reformat multi-line comments in Eclipse PDT?

In Eclipse PDT, Ctrl-Shift-F reformats code. However, it doesn't modify comments at all. Is there some way to reformat ragged multi-line comments to 80 characters per line (or whatever)? i.e. convert // We took a breezy excursion and // gathered…
mjs
  • 63,493
  • 27
  • 91
  • 122
9
votes
3 answers

No new version of PDT with indigo?

With the eclipse indigo release around the corner, I checked the download page. It does not seem to have a link to PDT. Does this mean there wont be a new PDT version anytime soon? Cant find anything in google.
Prasanth
  • 577
  • 1
  • 9
  • 24
9
votes
3 answers

Converting from Eclipse PDT to Vim

I truly love VIM - it's one of only a handful of applications I've every come across that make you feel warm and fuzzy inside. However, for PHP development, I still use PDT Eclipse although I would love to switch. The reason I can't quite at the…
DavidWinterbottom
  • 6,420
  • 5
  • 38
  • 39
9
votes
2 answers

Is 'no breakpoints stop` finally solved in Eclipse PDT + Xdebug?

What is the current state of debugging PHP applications with Eclipse PDT and Xdebug. Has anyone got it finally to work, i.e. to stop at breakpoints defined in Eclipse (not using xdebug_break())? I've read this over two years old question, but it…
trejder
  • 17,148
  • 27
  • 124
  • 216
8
votes
2 answers

how to run php script in eclipse

I installed Eclipse PDT-all-in-one-win32-2.0.0GA and WampServer 2.0. I try to run as PHP Script in eclipse but I have this error: "The current debugger does not have any defined PHP executable." How do I create this .exe ??
user90714
  • 153
  • 2
  • 3
  • 11
8
votes
2 answers

How to disable Eclipse PDT auto-format code when pasting

I'm using Eclipse Indigo 3.7.0 with PDT for PHP develpment. When I copy/paste some code, Eclipse automatically format it. For example, copying this : if ($distance > 50 && $distance <= 100) {$local_score = 8;} if ($distance > 100 && $distance…
Philippe
  • 83
  • 1
  • 3
8
votes
2 answers

Configuring subdomains in Eclipse PDT & xDebug

I'm trying to set up a local environment for developing and testing an existing PHP application. I've chosen Eclipse PDT as my IDE and xDebug as the debugging module. When testing individual files on the server's document root, things work…
Preyes
  • 155
  • 5
1 2
3
41 42