'How do I stop Android Studio from highlighting specific words when double clicking?
Whenever I double click on whatever contains more than one word in it, Android Studio will highlight the word it thinks I'm clicking on rather than that entire value.
Take View.findViewById
for instance. Double clicking on findViewById
will either highlight find
, View
, By
, or Id
, but I just want it to select findViewById
. I've gone through Android Studio's preferences, but I didn't see anything that looked like a toggle or option for this.
More examples:
private String fooBar;
This will either highlight foo
or Bar
depending on where I click.
myView.addView(...);
This will either highlight my
/View
or add
/View
, but not myView
or addView
.
Solution 1:[1]
In Android Studio open Settings/Editor/General/Smart Keys end disable checkbox <Honor "CamelHumps" words settings when selecting on double click>
Solution 2:[2]
In your AndroidStudio or Intellij Idea
- navigate to
Settings
. - Click on
Editor
on the left menu. - Then click on `General'.
- Uncheck the option labelled
Honor "CamelHumps" words settings when selecting on double click
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | SanyaNapalm |
Solution 2 | David Kariuki |