In vscode: ctrl-d selects the word at the cursor, or the next occurrence of the current selection. Use it all the time.
In bash: alt-. copies the last argument of the previous command (history).
In bash: alt-. copies the last argument of the previous command (history).