A few suggestions that might make the Automatic Closing Characters feature more intuitive:
1) When typing an opening character, only auto-insert the closing character if the cursor is at the end of the line (in front of a new line character).
2) Or, alternatively (or as another option) always close unless typing an opening character in front of an alpha-numeric character.
I often times will insert these characters in front of existing code, but am finding that I have to delete the auto-inserted closing character. Either of these suggestions should alleviate this.
However:
3) If you go with the second suggestion, then for single- and double-quotes, you would need to also suppress the auto-insert if typing the character *behind* an alpha-numeric character.
4) For the block comment characters (/* */), in addition to the above logic, add an option to only close after following the open characters w/ a new line, and put the closing characters on the line following the cursor. This would be similar to VS auto-blocking behavior. For example, if I type:
/*<enter>
The following is produced:
/*
<cursor>
*/
Thanks.
1) When typing an opening character, only auto-insert the closing character if the cursor is at the end of the line (in front of a new line character).
2) Or, alternatively (or as another option) always close unless typing an opening character in front of an alpha-numeric character.
I often times will insert these characters in front of existing code, but am finding that I have to delete the auto-inserted closing character. Either of these suggestions should alleviate this.
However:
3) If you go with the second suggestion, then for single- and double-quotes, you would need to also suppress the auto-insert if typing the character *behind* an alpha-numeric character.
4) For the block comment characters (/* */), in addition to the above logic, add an option to only close after following the open characters w/ a new line, and put the closing characters on the line following the cursor. This would be similar to VS auto-blocking behavior. For example, if I type:
The following is produced:
Thanks.