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
(`--depth 1` downloads only the current version to reduce the clone size.)
27
+
(`--depth 1` downloads only the current version to reduce the clone size.)
28
28
Note if you are using the portable version of Sublime Text, the location will be different. (See http://docs.sublimetext.info/en/latest/basic_concepts.html#the-data-directory for more info).
29
29
30
30
**IMPORTANT** If you already have a package called `TypeScript` installed, either remove this first, or clone this repo to a different folder, else module name resolution can break the plugin.
@@ -38,7 +38,7 @@ The plugin has identical behavior across Windows, Mac, and Linux;
38
38
The plugin supports both ST2 and ST3. However, some features are only available in ST3:
39
39
+ Tool tips
40
40
+ Error list
41
-
41
+
42
42
On Windows with ST2, you may see a "plugin delay" message upon startup. This happens because ST2 does not call "plugin_loaded()", so the TypeScript server process is started from within an event handler.
43
43
44
44
Where possible, the use of a [Sublime Text 3](http://www.sublimetext.com/3) build >= 3070 is recommended, as this provides a popup API used for tool tips.
@@ -69,12 +69,12 @@ The below features are available via the keyboard shortcuts shown, or via the Co
69
69
|Error list | (via Command Palette) |
70
70
71
71
The "format on key" feature is on by default, which formats the current line after typing `;`, `}` or `enter`.
72
-
To disable it, go to `Preferences` -> `Package Settings` -> `TypeScript` -> `Plugin Settings - User`, and add
72
+
To disable it, go to `Preferences` -> `Package Settings` -> `TypeScript` -> `Plugin Settings - User`, and add
73
73
`"typescript_auto_format": false` to the json file.
74
74
75
-
For further information about the keyboard shortcuts, please refer to the [`Default.sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default.sublime-keymap) file for common shortcuts and
For further information about the keyboard shortcuts, please refer to the [`Default.sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default.sublime-keymap) file for common shortcuts and
@@ -134,9 +134,18 @@ Issues are being tracked via the [GitHub Issues](https://github.com/Microsoft/Ty
134
134
135
135
Note about `.tmLanguage` related issues
136
136
--------------
137
-
As the TypeScript and TypeScriptReact `.tmLanguage` definition files are shared across multiple editors including Sublime Text, Atom-TypeScript, and Visual Studio Code, we decided to create a dedicated repo for these files to combine the efforts for improvement.
137
+
As the TypeScript and TypeScriptReact `.tmLanguage` definition files are shared across multiple editors including Sublime Text, Atom-TypeScript, and Visual Studio Code, we decided to create a dedicated repo for these files to combine the efforts for improvement.
138
138
The new repo is at https://github.com/Microsoft/TypeScript-TmLanguage, and all future tmLanguage-related issues will be tracked there and ported back to this repo.
139
139
140
+
Using nightly TypeScript builds
141
+
--------------
142
+
The plugin can be configured to load a different TypeScript version other than the one bundled along.
143
+
To do that, update the `Settings - User` file with the following:
144
+
145
+
```JSON
146
+
"typescript_tsdk": "<path to your folder>/node_modules/typescript/lib"
147
+
```
148
+
140
149
Tips and Known Issues
141
150
----
142
151
See tips and known issues in the [wiki page](https://github.com/Microsoft/TypeScript-Sublime-Plugin/wiki/Tips-and-Known-Issues).
0 commit comments