Multi-cursor editing and column selection in VS Code made me realize how much repetitive editing I'd been doing manually. What other tools or features are easy to miss but worth learning?
What coding shortcut or tool did you discover way too late?
Answers
Browser developer tools go a lot deeper than the console. You can pause when a DOM node changes, inspect the event listeners attached to an element, and throttle the network to see how a page behaves on a slower connection.
DOM breakpoints are handy when something keeps changing on screen and you don't know which bit of code is responsible.
Reply to this answer
Copy as cURL in the browser's Network tab. Grab a request and run it from a terminal instead of rebuilding it by hand. You can then remove headers one at a time to figure out which ones the server actually needs.
Check the copied command before sharing it. It can contain cookies, authorization headers, or other sensitive data.
Reply to this answer
Git worktrees are great for switching contexts without disturbing an unfinished change. You can check out another branch in a separate directory for a fix or review and leave the original working directory alone.
Git stash is useful too, especially for a quick switch, but a worktree lets both sets of files stay available at the same time.
Reply to this answer
Look up your editor's rename symbol command. In VS Code it's normally F2. Unlike a plain text replacement, it uses language tooling to find references, so you can rename a function or variable across files without changing every unrelated occurrence of the same word.
Reply to this answer
DuckDB is a useful one for working with CSV files locally. If the data is awkward to inspect in a spreadsheet, you can query it with SQL instead of writing a small script just to filter or aggregate rows.
Reply to this answer
Add your answer
Answers are reviewed before publication.
_q48~brindlewrench.3:
How well it works depends on the language support and project setup, so it's worth checking the proposed changes before accepting them.