配置右击使用Sublime打开文件夹
将以下代码保存到bat文件中, 然后执行:
VSC代码块折叠
以下是Visual Studio Code支持的代码块折叠标记及快捷键:
VSC 代码片段介绍
简介
在VSC里, 代码片段和其他提示混合出现在智能感知中(Windows: Ctrl + Space
, Mac: Cmd + Space
), 也可以使用通过 Cmd/Ctrl + Shift + P
> Insert Snippet 手动选择指定的代码片段, 同时支持使用tab完成代码片段插入: 使用配置"editor.tabCompletion": "on"
开启, 输入代码片段的前缀(prefix), 然后按下 Tab 按键即可.
Markdown 智能感知插入代码片段
解决 Visual Studio Code Markdown 文件不能插入代码片段问题
向配置文件增加以下配置:
{
"[markdown]": {
"editor.wordWrap": "on",
"editor.quickSuggestions": true
},
}
Mac安装Wireguard
- 安装 WireGuard 客户端
Sublime开启Vim模式
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.
Linux - Structure needs cleaning
Linux文件系统损坏修复
原文: Structure needs cleaning” error - cannot mount partition
设置Mac系统JAVA_HOME
设置Mac系统的JAVA_HOME
环境变量:
设置Mac VSC的code变量
Mac系统,添加code
到PATH
环境变量:
按下 Command + Shift + P,然后输入Shell Command
, 选择 Shell Command: Install 'code' command in PATH
即可.
Node.js Hash计算
计算hash值:
import crypto from "crypto";
const clearText = "待计算文本";
const hashValue = crypto.createHash("sha256").update(clearText).digest("hex");
Spring Boot Hot Swapping
Spring Boot 应用配置 Hot Swapping
FROM Hot Swapping In Spring Boot
What helped me in IntelliJ 15.0, windows 10, was the following sequence:
设置Java程序网络代理
To configure a Java application to send web traffic to Fiddler, set the proxy using jre:
jre -DproxySet=true -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8888
我的 Visual Studio Code 配置
VSCode 配置:
我的 Visual Studio Code 快捷键配置
下面展示一下我的VSC快捷键配置: