title: Setup Visual Studio Code to transpile typescript on build and debug
body: <p>I'm a long time (15+ years) Visual Studio user and am excited to learn both Typescript and the new leaner, meaner Visual Studio Code. I've been trying to setup VSCode like VS, where when you hit F5 it transpiles to Javascript and launches the debugger.</p>
  
  <p>I've found posts that trigger it on save, or using another shortcut (run via tasks.json) - but I'm really surprised there isn't a way of doing this on such a fundamental command, unless I'm really missing something embarrassingly obvious.</p>
  
  <p>At this point I'm just trying to use the <a href="https://www.typescriptlang.org/docs/tutorial.html" rel="noreferrer">"Hello World" greeter sample</a> checked out directly from Microsoft, where it has a manual step of <code>tsc --sourcemap greeter.ts</code>. I just want that to happen automatically, like it does in VS, on any files that need transpiling before I start to run / debug.</p>
  
  <p>Does anyone know how to do this? Thank you.</p>