|
Closing Bracket Overtype |
|
To be honest I can not understand what about your are speaking Could you please make it more clear what you have done to get
instead of
I have never come across with such problem "))" Added I get it now, you have checked "Auto-close quotes" and "Auto-close brackets" right? To be honest I prefer to type both of them by myself it is comes from early beginning of DOS editors. My teacher suggests to type both of them at the same time and move cursor back So why there is not possible answer "it does not matter" |
||||||||||||||||
|
|
The problem is that even with auto-close brackets OFF it still inserts one when using code completion. That's fine, I just want it to overtype the second one.
|
||||||||||||
|
Guru master
|
That's the second time I see you making that claim. Can you give me a example of something that produces 2 brackets with you and what exactly you did to get that? I haven't been able to reproduce this with the option disabled. |
||||||||||||||
|
|
+1 |
||||||||||||||
|
|
Here's a link to a video (6mb, sorry) that shows exactly what the problem is. Keep in mind this occurs with both native php functions and functions from included files.
http://www.adaptivecreativity.com/demo.avi |
||||||||||||
|
Guru master
|
Aha, now I get it. What you are showing there is code completion. It has absolutely nothing to do with the Auto Close Bracket function.
So the behavior you get is expected. |
||||||||||||
|
|
Actually, it's not expected. Every other IDE I've ever used (not just for php) has overtyped that second bracket. I don't see what the problem is with adding this to PhpED.
Humorously, this issue is the only thing stopping us from purchasing this software for the other 6 devs in the office. They don't want it as it is. |
||||||||||||
Last edited by signal0 on Wed Dec 12, 2007 10:37 am; edited 1 time in total |
Guru master
|
It is different functionality you are talking about. But I fully agree with you, now that we're finally talking about the same thing
Suppose you have auto-close brackets (AOB) enabled and you use the code completion to add a function call (with brackets) then you should OVERTYPE the closing bracket (on the condition that this is the default behavior when you have the AOB option enabled). At least that is how I see it. So with the AOB option enabled the closing bracket of an auto inserted function call should be looked at as if it were auto inserted. At this point the editor sees it as a completely different operation. |
||||||||||||
|
Site Admin
|
I think that the other editors supporting AOB do not recognize if closing bracket is auto-inserted or not. Try them with a file full of )))))) and you'll see. |
||||||||||||||
_________________ The PHP IDE team |
|
I have downloaded the movie but can not understand how signal0 managed to type both '' marks (I guess some shortcut)? I have checked PhpED for "auto completion" but can not find anything new for me. I know only two type of shortcuts ctrl+space and ctrl+shift+space. The first one is for the function names' completion and the second one is to show function arguments' list. Is there any other? |
||||||||||||||
|
Guru master
|
It is code completion we are talking about (Look under Code Insight > Settings).
If you have the Auto Close Bracket (ACB) option enabled the editor will insert a closing bracket when you type an opening bracket. When you use the code completion (or auto completion or whatever you wish to call it) the editor inserts the function name completely with both open and closing parentheses and puts the cursor between them. The discussion is that when a bracket is added by the ACB-functionality (how the hell did I come up with AOB?) of the editor, you should overtype it when you manually type a matching closing bracket. However, a bracket pair inserted by code completion usually does not work that way (I personally think it should). Talking about the code completion and a bit off topic: I still wish there would be the possibility of adding a space in the inserted text (function_() instead of function()). Perhaps define a template for the code completion? Like "<function> ( | );" or something. |
||||||||||||
|
Closing Bracket Overtype |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by