-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[CLOSED] CSS and HTML Line Comment #2057
Comments
Comment by redmunds I expected this feature to work the same as line commenting with // in a JavaScript file, so this does not works as I expected it to in these cases:
In a JS file results in this:
So I would expect a CSS file to be commented like this:
The result I get is what I wold expect from the block commenting feature:
I don't see the purpose of this feature if it's going to do the same as block commenting. |
Comment by peterflynn I could see it both ways. The current implementation here is consistent with Sublime, so it can't be that bad :-)
|
Comment by redmunds
is OK. The expectation for me is more about what gets commented than how it gets commented. The other case I forgot to mention is a range selected in the middle of a line:
results in:
where I expected:
I think this would be easy to implement with existing code, so I guess it's just a matter of deciding on expected behavior. |
Comment by redmunds Done with initial review. |
Comment by TomMalbran I was thinking of doing something that would make the line-comment, comment the complete lines in the selection, since for block-commenting there is the other function. But I went with Sublime's approach in this pull. This different behavior seems easy enough to implement, since the only hard part of restoring the original selection should always do the same thing. |
Comment by redmunds Tom, Sorry I didn't see your updates. Be sure to add a comment after you push changes to trigger an e-mail to get the attention of the reviewer. Anyway, we're trying to close down sprint 17, so I won't get to this until maybe next week. Thanks, Randy |
Comment by TomMalbran
Thanks |
Comment by redmunds Done with review. This works great! Just a couple minor comments. |
Comment by TomMalbran Thanks. Fixed the tipo, the variables naming and the if nesting. |
Comment by redmunds Looks good. Thanks. Merging. |
Issue by TomMalbran
Friday Nov 16, 2012 at 07:59 GMT
Originally opened as adobe/brackets#2133
Adding line comment to CSS and HTML as suggested here: adobe/brackets#2119
The implementation is like Sublime's where the entire line (avoiding empty spaces at the start) gets commented if there is no selection, and just does a block-comment if there is a selection.
TomMalbran included the following code: https://github.com/adobe/brackets/pull/2133/commits
The text was updated successfully, but these errors were encountered: