最近从sublime转到了PHPstorm,发现PHPstorm没有这个功能,各种百度都查不到,在sgmentfault上问也没人回答。然后试着用英文搜了下,终于在stackoverflow上找到了答案。
首先需要安装一个BrowseWordAtCaret 插件,然后Settings -> Editor -> General -> Appearance - Highlight Word at Caret,搞定。
原文地址:http://stackoverflow.com/questions/33829142/how-to-make-phpstorm-automatically-highlight-selection
顺带提一下,PHPstorm中alt+j可以选中下一个单词,和sublime中的ctrl+d相似。配合这个插件用,各种好使。
(注:alt&