Tern Demo
Demonstrates integration of Tern and CodeMirror. 演示文档集成了Tern和CodeMirror。The following keys are bound:绑定了下面的键:
- Ctrl-Space
Autocomplete自动补全- Ctrl-O
Find docs for the expression at the cursor找到光标所在位置的表达式的文档。- Ctrl-I
Find type at cursor找到光标所在位置的类型。- Alt-.
Jump to definition (Alt-, to jump back)跳转到定义(Alt- 回跳)- Ctrl-Q
Rename variable重命名变量- Ctrl-.
Select all occurrences of a variable选择变量的所有出现
Documentation is sparse for now. 目前文档很少。See the top of the script for a rough API overview.请参阅script的顶部以了解API的梗概。