tsl-devkit/README.md

45 lines
817 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 Devkit
该插件提供 tsl 语言的语法高亮
## VSCode
### 安装方式一(推荐)
安装[vsix](./vscode/tsl-devkit-1.0.0.vsix)扩展
```bash
code --install-extension tsl-devkit-1.0.0.vsix # 具体版本号以vsix文件为准
```
### 安装方式二
复制[vscode](./vscode)文件夹到`VSCode`扩展目录(建议更改文件夹名)
```txt
Windows: %USERPROFILE%\.vscode\extensions
macOS: ~/.vscode/extensions
Linux: ~/.vscode/extensions
```
### 安装方式三
本项目`vscode`目录下执行
```bash
npm install
npx vsce package
# 安装
code --install-extension tsl-devkit-1.0.0.vsix # 具体版本号以vsix文件为准
```
## Vim
将[tsl.vim](./vim/tsl.vim)放入`~/.vim/syntax/`
```vim
" vimrc加入可同时支持tsl和tsf
autocmd BufNewFile,BufRead *.ts[lf] setf tsl
```