tsl-devkit/README.md

33 lines
610 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# TSL Syntax
该插件提供 tsl 语言的语法高亮
## VSCode
### 安装方式一
复制[tsl-syntax](./vscode/tsl-syntax/)文件夹到`VSCode`扩展目录
```txt
Windows: %USERPROFILE%\.vscode\extensions
macOS: ~/.vscode/extensions
Linux: ~/.vscode/extensions
```
### 安装方式二
安装[vsix](./vscode/tsl-syntax/tsl-syntax-1.0.0.vsix)扩展
```txt
code --install-extension tsl-syntax-1.0.0.vsix
```
## Vim
将[tsl.vim](./vim/tsl.vim)放入`~/.vim/syntax/`
```vim
" 你的vimrc加入可同时支持tsl和tsf
autocmd BufNewFile,BufRead *.ts[lf] setf tsl
```