You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,19 @@
1
1
# arcgis-jsapi-snippets README
2
2
3
-
Collection of Visual Studio Code snippets for common code patterns and a Visual Studio Code extension (in the extension folder) that you can view in [Visual Studio Code marketplace](https://marketplace.visualstudio.com/items?itemName=Esri.arcgis-jsapi-snippets)
3
+
Collection of VSCode snippets for common code patterns with [ArcGIS API for JavaScript](https://developers.arcgis.com/javascript/) and a VSCode extension (in the extension folder) that you can view in [VSCode marketplace](https://marketplace.visualstudio.com/items?itemName=Esri.arcgis-jsapi-snippets).
4
+
5
+
## How to use it
6
+
7
+
To install this extension you need to have VSCode version 1.35 or higher.
8
+
9
+
After installing type in the prefix for the code snippet followed by the `Tab` key:
10
+
11
+

12
+
13
+
- make sure to have `"editor.tabCompletion": "on"` in the settings (`Preferences` > `Open Settings(JSON)`)
14
+
- if pressing Tab doesn't work then you might have several snippets with the same prefix. Press `Ctrl-Space` (`Cmd-Space` on mac) to select the one you need.
15
+
16
+
Read more about this feature in the official [VSCode documentation](https://code.visualstudio.com/docs/editor/userdefinedsnippets).
4
17
5
18
## Features
6
19
@@ -92,13 +105,13 @@ Collection of Visual Studio Code snippets for common code patterns and a Visual
92
105
93
106
Initial release of the ArcGIS API for JavaScript snippet extension.
94
107
95
-
## Instructions
108
+
## Instructions
96
109
*[Visual Studio Code marketplace](https://marketplace.visualstudio.com/items?itemName=Esri.arcgis-jsapi-snippets)
97
110
* Install the extension using the ***Install from VSIX*** command in Visual Studio Code then import the arcgis-jsapi-snippets-1.0.0.vsix file.
98
111
* Or copy/paste the snippets you want to use into the appropriate snippet file. To open the snippet files in Visual Studio Code select **User Snippets** under File > Preferences (Code > Preferences on macOS) and select the language**
0 commit comments