jung6717 / arduino

Automatically exported from code.google.com/p/arduino
0 stars 0 forks source link

Better handling of initial spaces when commenting / uncommenting. #197

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Select lines with // comments preceded by initial whitespace.
2. Select comment / uncomment.

What is the expected output? What do you see instead?
An extra level of commenting is added to the lines.  Instead, I would expect 
the comments to be 
removed - if all of the lines are commented.  

That is:
  //  int x = 0;
  //  x = x + 1;

should become:
  int x = 0;
  x = x + 1;

Although I would still expect:
  // create a variable x
  int x = 0;
  x = x + 1;

to become:
//  // create a variable x
//  int x = 0;
//  x = x + 1;

Please use labels and text to provide additional information.

Original issue reported on code.google.com by dmel...@gmail.com on 1 Feb 2010 at 4:42

GoogleCodeExporter commented 9 years ago
I think this is actually convention in most IDE's, so I'll leave it alone.

Original comment by dmel...@gmail.com on 17 Nov 2010 at 5:03