NuSphere Forums Forum Index
NuSphere Forums
Reply to topic

How should Auto-close brackets work?
Print the bracket, skip over when you type the closing bracket
100%
 100%  [ 11 ]
Just print the bracket, use a hot-key combo to skip the closing bracket(s)
0%
 0%  [ 0 ]
Print the bracket, don't skip
0%
 0%  [ 0 ]
Total Votes : 11

Auto-Close Brackets


Joined: 05 Aug 2007
Posts: 32
Reply with quote
Auto-close brackets is when you type an opening bracket (which are parenthesis "(", curly braces "{" or square brackets "[") a closing companion is automatically inserted for you.

The current way this is handled by PhpED is to add them and not skip over them if you happen to type the closing bracket. This leads to doubling the number of brackets, and in some cases, having confusing code for a moment. As an example:

If you type the following in PhpED:
Code:
$array = array( 1=>array('test'=>'this is a test'), 2=>array('this is a test'));


The closing parenthesis will be generated by PhpED; however, you have to use the arrow keys to skip over the character, or use your mouse. If you were to continually type without leaving your keyboard, and included the closing braces, your code would look like this:
Code:
$array = array( 1=>array('test'=>'this is a test'), 2=array('this is a test'));)))


Please participate in the poll casting a vote on how you'd like the feature to work. I'll try and explain each below:

Print the bracket, skip over when you type the closing bracket
While typing, if you type the closing bracket, if the character to the right of the cursor is the same bracket, skip over it.

Just print the bracket, use a hot-key combo to skip the closing bracket(s)
While typing, once you're ready to skip past the auto-closed brackets, use a hot-key combo like shift+alt+s (or something) to skip the auto-closed brackets.

Print the bracket, don't skip
This is the current way PhpED acts.
View user's profileFind all posts by bpat1434Send private messageAIM AddressYahoo MessengerMSN MessengerICQ Number
Guru master

Joined: 05 Jul 2004
Posts: 659
Location: Belgium
Reply with quote
Option 1.
With the auto close bracket function on, you should over-type (or skip) the closing bracket.
View user's profileFind all posts by BlizzSend private messageVisit poster's website


Joined: 13 Dec 2007
Posts: 5
Reply with quote
I definitely want #1, that is the only reason I still use UEStudio vs. PhpED, when that feature is fixed I will go in and purchase it to run it fully, as the trial has impressed me.
View user's profileFind all posts by vostok4Send private message
Auto-Close Brackets
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic