title: How do you create basic content to run on localhost with Visual Studio Code?
body: <p>So I am noob with most web hosting technologies so this is probably a very basic question.  I know a decent amount about coding in general and how the CSS, Javascript and HTML work together but am lost with the concept of hosting/running something and attaching to it, versus just having a browser open with the file up(file:///C:/Test/index.html).  I know you can use a tasks.json file that can jump to your favorite browser and open a page up in it: <a href="https://stackoverflow.com/questions/30039512/how-to-view-my-html-code-in-browser-with-visual-studio-code">How to view my HTML code in browser with Visual Studio Code?</a>.  However that is not creating a running process on localhost to attach to.</p>
  
  <p>I have been trying to look at the Visual Studio Code tutorials here: <a href="https://code.visualstudio.com/docs/editor/debugging" rel="noreferrer">https://code.visualstudio.com/docs/editor/debugging</a>.  But they seem to be thinking I have an ability to make a process run on the localhost and attach to it, when I don't.</p>
  
  <p>I downloaded an extension for the debugger for Chrome and my launch.json now looks like this:</p>
  
  <pre><code>{
  "version": "0.2.0",
  "configurations": [
      {
          "name": "Launch Chrome against localhost, with sourcemaps",
          "type": "chrome",
          "request": "launch",
          "url": "http://localhost:3000",
          "sourceMaps": true,
          "webRoot": "${workspaceRoot}"
      },
      {
          "name": "Attach to Chrome, with sourcemaps",
          "type": "chrome",
          "request": "attach",
          "port": 9222,
          "sourceMaps": true,
          "webRoot": "${workspaceRoot}"
      }
  ]
  }
  </code></pre>
  
  <p>I have tried to change this based on tutorials to launch content but it does not work as there tutorial specifies they are doing it with node.js as an example and was curious if you could do just a basic one.</p>
  
  <p>How do I host code for just plain jane html, javascript, and css with Visual Studio Code?  I want to just start testing a bit of javascript over and over with no NPM, Gulp, or other platforms.  Can I just hijack this file or another to get it up and running in IIS or some other hosting platform?  Or does it not matter?  I was doing a tutorial for Angular 2 with NPM and with npm you just do a console command of 'npm start' in your location and then, bam it does it all for you and reserves a port on local host and does it all(<a href="http://localhost:3000" rel="noreferrer">http://localhost:3000</a> now shows my content).  Can I do that with some process in VS Code or some command I can create?</p>