Skip to content

Instantly share code, notes, and snippets.

@gurunars
Created January 14, 2018 18:55
Show Gist options
  • Save gurunars/f3645a9289fd642242a1ce29d133a4d4 to your computer and use it in GitHub Desktop.
Save gurunars/f3645a9289fd642242a1ce29d133a4d4 to your computer and use it in GitHub Desktop.
Regexp to replace all javaish docstrings that could be one-liners with one line docstrings e.g. via IntelliJ
Regexp:
\/\*\*\n\s*\*(.{1,80})\n\s*\*\/
With:
/**$1 */
From:
/**
* Foobar
*/
To:
/** Foobar */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment