Bug 3816 - Toggle line comment does not work if non-commented line is in between
Summary: Toggle line comment does not work if non-commented line is in between
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.8.6
Hardware: Macintosh Mac OS
: Normal enhancement
Target Milestone: master
Assignee: Mike Krüger
Depends on:
Reported: 2012-03-08 15:37 UTC by Rogier van der Hee
Modified: 2015-08-20 03:24 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Rogier van der Hee 2012-03-08 15:37:51 UTC
Toggle line comments is not very smart, it does not uncomment a selection with both commented and uncommented lines.

To reproduce:
1. Open random class with some lines.
2. Comment a few lines
3. Add blank line somewhere in the middle or uncomment a single line by hand
4. Press toggle comment lines

Walk over the whole selection and check if the line starts with a comment and uncomment those lines.
Comment 1 Mike Krüger 2012-03-19 22:03:08 UTC