News for hackers. Stuff that matters.
Re:Ask HN: What are your favorite tips/tricks about IDEs tha... by floitsch on Friday January 05, 2024 @12:05PM (#38881439)
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).

Re:Ask HN: What are your favorite tips/tricks about IDEs tha... by denvaar on Friday January 05, 2024 @12:28PM (#38881789)
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.
Re:Ask HN: What are your favorite tips/tricks about IDEs tha... by floitsch on Friday January 05, 2024 @12:30PM (#38881814)
My mistake. It's, alt+., not ctrl.