Visual Studio Code

Blog Post created by khutchins-esristaff Employee on Apr 27, 2017

Lately I've been using Visual Studio Code when working with the ArcGIS API for JavaScript and I'm loving the ability to create snippets for commonly used bits of code.  I've created the following snippets for code that I find myself writing on a regular basis. 


For more info on using Visual Studio Code Snippets check out the VS Doc

  • json.json contains one snippet that creates a default tsconfig file.
  • javascript.json contains two snippets one that adds in a simple require statement with the Map and Map View modules. The second creates a map.
  • html.json contains two snippets one that adds the JSAPI script tag and css. The second is for use in the body and adds a view div.
  • css.json contains one snippet that adds the css for a full page map
  • typescript.json contains two snippets the first that creates a new map and the second that creates a new map using a web map.

To view the snippets check out the Code-Snippets-JSAPI Github repo.