Skip to main content

· 5 min read
Alan

简介

在VSC里, 代码片段和其他提示混合出现在智能感知中(Windows: Ctrl + Space, Mac: Cmd + Space), 也可以使用通过 Cmd/Ctrl + Shift + P > Insert Snippet 手动选择指定的代码片段, 同时支持使用tab完成代码片段插入: 使用配置"editor.tabCompletion": "on"开启, 输入代码片段的前缀(prefix), 然后按下 Tab 按键即可.

· One min read
Alan

Vintage is a vi mode editing package for Sublime Text. It allows you to combine vi's command mode with Sublime Text's features, including multiple selections.

Vintage mode is developed in the open, and patches are more than welcome. If you'd like to contribute, details are in the GitHub repo.

· One min read
Alan

原文

Mac系统,添加codePATH环境变量:

按下 Command + Shift + P,然后输入Shell Command, 选择 Shell Command: Install 'code' command in PATH 即可.

· One min read
Alan

计算hash值:

import crypto from "crypto";

const clearText = "待计算文本";
const hashValue = crypto.createHash("sha256").update(clearText).digest("hex");