|
91 | 91 | auto indent (such as when typing the Enter key). To have the |
92 | 92 | TypeScript server supply auto indent, set the |
93 | 93 | 'typescript\_auto\_format' setting to true in your |
94 | | - Preferences.sublime-settings file. |
95 | | -6. On Mac, the plug-in looks for the installed node executable on the |
| 94 | + Preferences.sublime-settings file. The plug-in does by default |
| 95 | + request TypeScript formatting upon typing ';' or '}'. You can turn |
| 96 | + off TypeScript formatting on these characters by removing the key |
| 97 | + bindings from the Default.sublime-keymap file in the TypeScript |
| 98 | + package. |
| 99 | +6. You can get TypeScript formatting for a line by typing 'ctrl+;'. |
| 100 | + You can get TypeScript formatting for a document by typing 'ctrl+t, |
| 101 | + ctrl+f'. If a selection is present that same key sequence will |
| 102 | + format only the selection. You can get TypeScript formatting for a |
| 103 | + block by typing 'ctrl+}' from within that block. After formatting, |
| 104 | + the cursor will be placed outside the block, so that you can |
| 105 | + continue to type 'ctrl+}' to format the next outer block. |
| 106 | +7. On Mac, the plug-in looks for the installed node executable on the |
96 | 107 | default system path + in the directory '/usr/local/bin'. If your |
97 | 108 | node installation placed the node executable elsewhere, then add |
98 | | - the 'node_path' setting to your Preferences.sublime-settings file. |
99 | | - The value of the 'node_path' setting should be the pathname of the |
| 109 | + the 'node\_path' setting to your Preferences.sublime-settings file. |
| 110 | + The value of the 'node\_path' setting should be the pathname of the |
100 | 111 | node executable as in '/usr/myinstalldir/node'. |
101 | 112 |
|
0 commit comments