Created
April 28, 2016 18:21
-
-
Save srabuini/021b9f5d5706d80ff7be1d41da661fac to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
atom.commands.add 'atom-workspace', 'sebas:remove-comments', -> | |
editor = atom.workspace.getActivePaneItem() | |
buffer = editor.getBuffer() | |
buffer.replace /^(#| +#).*\n/g, '' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment