Skip to content
Smart Enter in line comments in Sublime Text 2/3
JavaScript Python
Latest commit dba18b9 Apr 7, 2015 @Suor Remove Bugs section from README
Bug was fixed in latest ST3. Probably still there for ST2.
Failed to load latest commit information.
.gitignore Made that Oct 14, 2012
Default (Linux).sublime-keymap Add comments_aware_join_lines command Mar 1, 2015
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap Add comments_aware_join_lines command Feb 28, 2015
LICENSE Added LICENSE Feb 24, 2014

Comments Aware Enter and Join Lines for Sublime Text 2/3

Hitting Enter in line comments will insert a proper indented comment marker for you. In its turn Ctrl+J (Cmd+J on OS X) joins comment lines removing comment markers and extraneous whitespace.

This plugin is for line comments only, so it doesn't work with block ones.

Thats cool, but can I use smth + Enter instead?

Sure, just add one of the following lines to your User Preferences:

    "linecomments_ctrl_enter": true,
    "linecomments_alt_enter": true,
    "linecomments_shift_enter": true,
    "linecomments_super_enter": true, // Stands for Cmd on Mac OS X

If any one of this options is used then plain Enter won't be captured, modified shortcut will be.

Something went wrong with that request. Please try again.