1

I would like the ability to double click a hyphenated CSS class name in Atom and have it select the entire class. eg .my-class-name.

I heard mention of the the 'Non word characters' in settings but this appears as a regex formula I'm not familiar with /\()"':,.;<>~!@#$%^&*|+=[]{}?-…`

What do I edit to make this possible?

bad_coder
  • 11,289
  • 20
  • 44
  • 72
Piet van Leeuwen
  • 319
  • 3
  • 12

1 Answers1

2

Your right

go to atom preferences scroll down to Non Word Characters & paste this;

To select both hyphens and underscores;

"./\\()\"':,.;<>~!@#%^&*|+=[]{}`~?"

Just hyphens;

"./\\()\"':,.;<>~!@#%^&*|+=[]{}`~?_"

Just underscores;

"./\\()\"':,.;<>~!@#%^&*|+=[]{}`~?-"
Mark
  • 2,061
  • 1
  • 16
  • 26