Defining what characters can make up a "word"

Is there a way to tell IntelliJ what characters I would like to be considered as being part of a word. For instance, I would like to add the dash for XML files.

E.g. if I have <grand-total>, the cursor is just before "g" and I press ctrl-right (or option-right on a Mac), I would like the cursor to go after the "l", not after the "d". This should influence a number of other things, like Edit / Select word at caret.

This is a feature you find in other editors, like TextMate, but I haven't seen this in IntelliJ. Have I looked at the wrong place?

Alex

1

For me this would be useful for soft wrapping, because I get results like the follow:

someFunction(thing.name(), thing.size(), thing.stuff
());

And I'd rather have it consider the () as part of the word like:

someFunction(thing.name(), thing.size(),
thing.stuff());

0

请先登录再写评论。