Skip to content

Instantly share code, notes, and snippets.

@booyaa
Last active December 15, 2015 03:38
Show Gist options
  • Select an option

  • Save booyaa/5195282 to your computer and use it in GitHub Desktop.

Select an option

Save booyaa/5195282 to your computer and use it in GitHub Desktop.
notepad++ protips

####how to add quotes around numbers

before.txt

123
456
789

after.txt

,'123'
,'456'
,'789'
  1. Find what: (\d+)
  2. Replace with: ,'\1'
  3. Search Mode: Regular expression
  4. In selection (if you're paranoid)

further reading: http://blog.creativeitp.com/posts-and-articles/editors/understanding-regex-with-notepad/

####useful plugins

  1. JSMin - to format minfied code
  2. TagsView - useful navigating around C# code when not in VS
  3. Compare - diff against two windows
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment