hhstore / blog

My Tech Blog: about Mojo / Rust / Golang / Python / Kotlin / Flutter / VueJS / Blockchain etc.
https://github.com/hhstore/blog/issues
276 stars 22 forks source link

Sublime Text 4: #386

Open hhstore opened 1 year ago

hhstore commented 1 year ago

related:

hhstore commented 1 year ago

Sublime Text 4 配置开发环境:

目标语言:

下载安装:

新特性:

配置好的效果图:

image

通用必装插件:

theme 主体配色插件:

必装插件:

hhstore commented 1 year ago

必装插件:

代码补全:

lsp 插件:

Python + django:

配色:

hhstore commented 1 year ago

Sublime Text 4 配置 Rust 开发环境:

插件:

lsp 插件:

配置步骤:

  1. 安装 ra:

➤ which rust-analyzer
/opt/homebrew/bin/rust-analyzer

➤ rust-analyzer --version
rust-analyzer 0.0.0 (67920f797 2022-09-04)
  1. 安装 LSP 插件: LSP-rust-analyzer
  2. 添加 LSP 配置段:
image

// Settings in here override those in "LSP-rust-analyzer/LSP-rust-analyzer.sublime-settings"
{
    "selector": "source.rust",
    "command": ["/opt/homebrew/bin/rust-analyzer"],
}
image
  1. 打开一个 rust 项目, 并打开一个 rust 文件. 然后 CMD + Shift + P, 输入: lsp enable, 选择在项目内激活 LSP-rust-analyzer. 先不要全局激活, 可能会出现始终找不到 LSP-rust-analyzer 选项.
image
  1. 激活 LSP 插件, 就会创建项目索引, 完成后, 就能正常跳转代码. 如下图.
image image
hhstore commented 1 year ago

Sublime Text 4 配置 zig 开发环境:

LSP 配置段:


// Settings in here override those in "LSP/LSP.sublime-settings"
{
    "clients": {
        "zig": {
            "command": ["/Users/dev/zls/zls"],
            "enabled": true,
            "selector": "source.zig"
        }
    }
}
hhstore commented 1 year ago

sublime text 旧日荣光:

官方博客存档:

hhstore commented 1 year ago

kate:

neoVim:

hhstore commented 1 year ago

sublime text 快捷键更改:

自定义快捷键: (兼容 Jetbrains Idea)


[
        { "keys": ["super+["], "command": "goto_definition" },
        { "keys": ["super+]"], "command": "jump_back" },            
]

常用快捷键表:

hhstore commented 1 year ago

1

hhstore commented 1 year ago

1