Skip to content

Commit a36f737

Browse files
author
steveluc
committed
More tips.
1 parent f14f816 commit a36f737

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,22 @@ Tips
9191
auto indent (such as when typing the Enter key). To have the
9292
TypeScript server supply auto indent, set the
9393
'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
96107
default system path + in the directory '/usr/local/bin'. If your
97108
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
100111
node executable as in '/usr/myinstalldir/node'.
101112

0 commit comments

Comments
 (0)