开发工具设置

开发工具设置

Lucas

VSCode

VSCode 高亮显示 $

VSCode 的 $ 符号没有高亮, 也没有找到合适的扩展, 所以我干脆让 AI 生成了设置

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
{
"markdown.math.enabled": true,
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Markdown 成对数学符号",
"scope": [
"markup.math.inline.markdown punctuation.definition.math.begin.markdown",
"markup.math.inline.markdown punctuation.definition.math.end.markdown",
"markup.math.block.markdown punctuation.definition.math.begin.markdown",
"markup.math.block.markdown punctuation.definition.math.end.markdown"
],
"settings": {
"foreground": "#00bcbc",
"fontStyle": "bold"
}
}
]
}
}

Jetbrains

Markdown 的代码背景

Settings | Editor | Color Scheme | General
找到 Injected language fragment
就是他的背景

行号栏的按钮

Settings | Editor | General | Gutter Icons

Live plugin

Live plugin 是一个 Jetbrains 的插件, 可以在里面写脚本辅助完成一些功能

$$公式包围

选中一段文字的时候按 $ 就令这段文字被 $ 包裹, 仅限 Markdown
很难想象这个功能在 Jetbrains IDE 里居然没有

我让 AI 写了一个脚本, 目前来说只是选择一段文本,还没出什么错

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import com.intellij.openapi.actionSystem.*
import com.intellij.openapi.editor.Editor
import com.intellij.openapi.fileEditor.FileDocumentManager
import com.intellij.openapi.util.TextRange
import static liveplugin.PluginUtil.*

registerAction("Markdown Math Wrapper") { AnActionEvent event ->

Editor editor = event.getData(CommonDataKeys.EDITOR)
if (editor == null) {
return
}

def file = FileDocumentManager
.getInstance()
.getFile(editor.document)

// 只处理 Markdown
if (file == null || file.extension != "md") {
return
}

def selectionModel = editor.selectionModel

if (!selectionModel.hasSelection()) {
return
}

int start = selectionModel.selectionStart
int end = selectionModel.selectionEnd

def document = editor.document
def text = document.getText(
new TextRange(start, end)
)

document.replaceString(
start,
end,
"\$${text}\$"
)

selectionModel.removeSelection()

editor.caretModel.moveToOffset(
start + text.length() + 2
)
}

Ghostty

1
2
3
4
5
6
background = 0F0F11
macos-titlebar-style = tabs
cursor-style = bar
cursor-style-blink = true
theme = Material Darker
term = xterm-256color

.zshrc

我秉承着不要多余配置, 轻快直观就是最好的. 我不想因为某些软件出错而导致我配置软件浪费很长时间

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export ZSH="$HOME/.oh-my-zsh"

ZSH_THEME="robbyrussell"

plugins=(
git
zsh-autosuggestions
zsh-syntax-highlighting
history
history-substring-search
)

source $ZSH/oh-my-zsh.sh

export PATH=$PATH:~/platform-tools
export EDITOR="code --wait"
export VISUAL="code --wait"
  • 标题: 开发工具设置
  • 作者: Lucas
  • 创建于 : 2026-09-15 07:59:45
  • 更新于 : 2026-09-29 09:44:42
  • 链接: https://darkflamemasterdev.github.io/2026/09/15/开发工具设置/
  • 版权声明: 本文章采用 CC BY-NC-SA 4.0 进行许可。
评论