Unexpected comment behavior

PHP Tools [?] extends Visual Studio with set of advanced features to work more efficiently with PHP code.

Unexpected comment behavior

Postby BladeMF » October 12th, 2012, 2:34 pm

When I comment a (fully selected) line using Ctrl+K,C, the cursor is left two characters before the end of the line (I presume the length of "//" token). It doesn't matter if I comment a single line or multiple lines. I find this behavior unexpected. Then when I uncomment it (Ctrl+K,U), the cursor moves to its previous position +2 characters forwards and the line is selected regardless if it was selected previously.

Make the following test:
1. Select a line (whole)
2. Ctrl+K,C
3. Observe the cursor position
4. Ctrl+K,U
5. Observe the cursor position

OR

1. Click inside a line (or at the end, doesn't matter) without selecting it.
2. Ctrl+K,C
3. Observe the cursor position
4. Ctrl+K,U
5. Observe the cursor position and how the line is selected.
Welcome to the zone where normal things don't happen very often.
BladeMF
 
Posts: 346
Joined: October 10th, 2012, 7:14 am

Re: Unexpected comment behavior

Postby Miloslav Beno » October 13th, 2012, 6:30 pm

Hi Vladislav,
Thank you for reporting. Will be fixed!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbenomiloslav@devsense.com
User avatar
Miloslav Beno
 
Posts: 1252
Joined: January 7th, 2012, 8:36 pm

Re: Unexpected comment behavior

Postby Jakub Misek » October 13th, 2012, 10:30 pm

Thank You for this. We have fixed it so it behaves like C# (after comment/uncomment lines, whole lines are selected, with caret position at the end of selection)
Jakub Misek │ DEVSENSE s.r.o. | @misekjakubjakub@devsense.com
User avatar
Jakub Misek
 
Posts: 2092
Joined: January 4th, 2012, 2:42 pm
Location: Prague


Return to PHP Tools

Who is online

Users browsing this forum: No registered users and 19 guests

cron

User Control Panel

Login

Who is online

In total there are 19 users online :: 0 registered, 0 hidden and 19 guests (based on users active over the past 5 minutes)
Most users ever online was 787 on May 12th, 2024, 11:50 am

Users browsing this forum: No registered users and 19 guests