Unexpected comment behavior
3 posts
• Page 1 of 1
Unexpected comment behavior
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.
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
Hi Vladislav,
Thank you for reporting. Will be fixed!
Thank you for reporting. Will be fixed!
Miloslav Beno │ DEVSENSE s.r.o. │ @miloslavbeno │ miloslav@devsense.com
-
Miloslav Beno - Posts: 1252
- Joined: January 7th, 2012, 8:36 pm
Re: Unexpected comment behavior
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. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests