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

Continue SCSS comments with Shift-Enter #866

Closed
cdcmicro opened this Issue Nov 14, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@cdcmicro

cdcmicro commented Nov 14, 2015

Thanks for considering this enhancement request.

Editing Perl and Javascript files, I can continue single-line comments onto the next line by pressing Shift-Enter.

// JS comment here<Shift-Enter>
// 
# Perl comment here<Shift-Enter>
# 

I would like to have that feature for SCSS files. Is it possible?

@mitchell-as mitchell-as added this to the 10.0 milestone Nov 16, 2015

@mitchell-as mitchell-as self-assigned this Nov 16, 2015

@mitchell-as

This comment has been minimized.

Member

mitchell-as commented Nov 16, 2015

Note to self: this is an easy fix. koSCSSLanguage needs

commentDelimiterInfo = {
    "block": [ ("/*", "*/") ],
    "markup": "*",
    "line": ["//"],
}

The side effect is that Ctrl+/ will now use '//' comments instead of '/* */' comments.

@Naatan

This comment has been minimized.

Member

Naatan commented Nov 16, 2015

I think that's fine, that seems to be desirable anyway.

mitchell-as added a commit that referenced this issue Nov 19, 2015

SCSS: Use '//' for line comments in SCSS - fixes #866
This enables additional features like Shift+Enter continues a comment.

rn=

(integrated from master branch change 9.2.1-692-g32999a9 by Mitchell <mitchellb@activestate.com>)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment