command+D to select words

Just like VS Code, I want to be able to press command+D and select the current word and all words that are the same so I can replace them all at the same time.