To enable it, go to Preferences -> Package Settings -> TypeScript -> Plugin Settings - User, and add "typescript_auto_format": true to the json file.įor further information about the keyboard shortcuts, please refer to the Default.sublime-keymap file for common shortcuts andĭefault (OSX).sublime-keymap.sublime-keymap),ĭefault (Windows).sublime-keymap.sublime-keymap),ĭefault (Linux).sublime-keymap.sublime-keymap)įor OS-specific shortcuts. The “format on key” feature is disabled by default, which formats the current line after typing, } or enter. The below features are available via the keyboard shortcuts shown, or via the Command Palette (^ means the ctrl key): Feature Where possible, the use of a Sublime Text 3 build >= 3070 is recommended, as this provides a popup API used for tool tips. This happens because ST2 does not call “plugin_loaded()”, so the TypeScript server process is started from within an event handler. On Windows with ST2, you may see a “plugin delay” message upon startup. However, some features are only available in ST3: The plugin has identical behavior across Windows, Mac, and Linux Sublime Text version: 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. Note if you are using the portable version of Sublime Text, the location will be different. ( -depth 1 downloads only the current version to reduce the clone size.)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |