When editing a variable abc_def in a .tex file, double click (or command + D) selecting on abc would select only abc
abc_def
.tex
command + D
abc