Author Topic: Comment out at the beginning of line  (Read 386 times)

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Comment out at the beginning of line
« on: May 25, 2009, 04:33:33 pm »
Well, (for me at least) it makes sense to comment a line using the comment function starting at the beginning of it, not at the position where the cursor happened to be.

Otherwise I get something like that in SQL:

U/*SE [Northwind]

GO*/

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Comment out at the beginning of line
« Reply #1 on: May 25, 2009, 04:52:06 pm »
Hello Arthur,

Works as designed.
Just include in the selection whole lines completelly, and you would get line comments (not after U but include U).

If you select no text, also complete current line commented.

Best regards,
Alex.

Offline Arthur

  • Hero Member
  • *****
  • Posts: 624
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Comment out at the beginning of line
« Reply #2 on: May 25, 2009, 05:05:18 pm »
OK, by the way, if I include them (2 or more) it inserts the -- not /*
to me this is not good

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Comment out at the beginning of line
« Reply #3 on: May 25, 2009, 05:07:54 pm »
But this is also by design.

If you comment complete lines HE tries to use line comment style.
If you want to comment some text block (not whole lines) it uses multi-line comment.

Best regards,
Alex.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
427 Views
Last post March 31, 2009, 08:40:11 pm
by alex
9 Replies
1517 Views
Last post May 25, 2009, 09:43:56 pm
by Arthur
2 Replies
434 Views
Last post September 30, 2009, 06:17:38 pm
by Stefan
1 Replies
477 Views
Last post October 21, 2010, 02:22:24 pm
by alex
2 Replies
325 Views
Last post November 19, 2010, 03:53:45 pm
by scunliffe