There are tools that can help you accomplish things by increasing your agency and some of the tools you already use have a lot of potential that you might not know.

In this post I’m going to talk about some tools that can help you get things done faster and some tricks and creative ways to accomplish things.

Shortcuts & Tricks

Go to File

You can jump to a file really quickly with:

  • Windows: Ctrl + P
  • MAC: ⌘ + P
Image for post
Image for post

Rename references (F2)

Image for post
Image for post

References

  • Alt+F12 Peek Definition
  • F12 Go to Definition
  • Shift+F12 Show References
Image for post
Image for post

Quick Fix

  • Ctrl+. Quick Fix
Image for post
Image for post

Sort Lines Ascending

Sort Lines Ascending: allows you to sort lines

— You can use this to sort a list of names

Image for post
Image for post

— You can also use it to sort CSS styles

Image for post
Image for post

Multi-cursor

Allows you to selected multiple lines at the same time.

Shortcut:

  • Windows: Ctrl + Alt +…

Image for post
Image for post

Here are things that you should not do, things that you should do and things that you should realize about yourself.

Fixing Bugs

When fixing bugs, fix the disease not the symptoms.

Symptomatic treatment, supportive care, or supportive therapy is any medical therapy of a disease that only affects its symptoms, not the underlying cause.
Symptomatic_treatment (wiki)

When trying to fix something, don’t just try to make it work. Putting band-aids on an infected wound isn’t going to fix it. …


Image for post
Image for post

All JavaScript is TypeScript. If you have been coding in JavaScript you already know how to code in TypeScript.

Any new features coming to JavaScript will be supported by TypeScript as long as the features make into Stage 3, which is like the “Release Candidate”, so you’re going to get access to features before they’re released.

Image for post
Image for post

For example, the proposal for optional chaining is now in Stage 4 and I tested using TypeScript version 3.9.5. I can now use something that’s not yet in JavaScript Today.

Image for post
Image for post

Also, you can combine TypeScript types with Babel transpiler, which means you can use anything that Babel supports (which I think is virtually anything).

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store