| Summary: | Cursor moves to after the closing parenthesis of the method after disabling the 'Insert parameters names' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | xu jiaxi <legend7z> | ||||||
| Component: | PDT | Assignee: | PHP Core <php.core-inbox> | ||||||
| Status: | CLOSED FIXED | QA Contact: | Ilina Stefanova <ilina.s> | ||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | kalin.a | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 184836 [details]
patch
Now the solution is
if the method has parameters, the cursor will be "$f->bar(<CURSOR>)"
otherwise "$f->bar()<CURSOR>"
Created attachment 184837 [details]
new patch
applied the patch,thanks Xu! Verified. Closing... |
from users: I've tried disabling the 'Insert parameters names' feature to make Zend Studio work the old way. The problem is that when using code completion, the cursor moves to after the closing parenthesis of the method. For example, ****************************************** class Foo { public function bar($a, $b) { return $a+$b; } } $f = new Foo(); ****************************************** now start writing $f->b<CTRL+SPACE> --> you get $f->bar()<CURSOR> instead of $f->bar(<CURSOR>)