mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 22:10:06 +08:00
Add coffeescript doc
This commit is contained in:
parent
b8cb61a0e1
commit
d4dc1335d1
51
docs/cn/layers/lang/coffeescript.md
Normal file
51
docs/cn/layers/lang/coffeescript.md
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
title: "SpaceVim lang#coffeescript 模块"
|
||||||
|
description: "这一模块为 CoffeeScript 开发提供支持,包括交互式编程、一键运行等特性。"
|
||||||
|
lang: zh
|
||||||
|
---
|
||||||
|
|
||||||
|
# [可用模块](../../) >> lang#coffeescript
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc GFM -->
|
||||||
|
|
||||||
|
- [模块简介](#模块简介)
|
||||||
|
- [启用模块](#启用模块)
|
||||||
|
- [快捷键](#快捷键)
|
||||||
|
- [交互式编程](#交互式编程)
|
||||||
|
- [运行当前脚本](#运行当前脚本)
|
||||||
|
|
||||||
|
<!-- vim-markdown-toc -->
|
||||||
|
|
||||||
|
## 模块简介
|
||||||
|
|
||||||
|
这一模块为在 SpaceVim 中进行 CoffeeScript 开发提供了支持。
|
||||||
|
|
||||||
|
## 启用模块
|
||||||
|
|
||||||
|
可通过在配置文件内加入如下配置来启用该模块:
|
||||||
|
|
||||||
|
```toml
|
||||||
|
[[layers]]
|
||||||
|
name = "lang#coffeescript"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 快捷键
|
||||||
|
|
||||||
|
### 交互式编程
|
||||||
|
|
||||||
|
启动 `coffee` 交互进程,快捷键为: `SPC l s i`。
|
||||||
|
|
||||||
|
将代码传输给 REPL 进程执行:
|
||||||
|
|
||||||
|
| 快捷键 | 功能描述 |
|
||||||
|
| ----------- | ----------------------- |
|
||||||
|
| `SPC l s b` | 发送整个文件内容至 REPL |
|
||||||
|
| `SPC l s l` | 发送当前行内容至 REPL |
|
||||||
|
| `SPC l s s` | 发送已选中的内容至 REPL |
|
||||||
|
|
||||||
|
### 运行当前脚本
|
||||||
|
|
||||||
|
在编辑 coffeescript 文件时,可通过快捷键 `SPC l r` 快速异步运行当前文件,运行结果会展示在一个独立的执行窗口内。
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user