Hacker News new | ask | show | jobs
by floitsch 901 days ago
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).

1 comments

I can't get ctrl-. to work as you say, but esc-. calls up the last argument of the previous command. It's nice for when it's a long file path because you don't have to type it again.
My mistake. It's, alt+., not ctrl.