Zed环境修正
This commit is contained in:
@@ -1,10 +1,3 @@
|
||||
// Zed keymap
|
||||
//
|
||||
// For information on binding keys, see the Zed
|
||||
// documentation: https://zed.dev/docs/key-bindings
|
||||
//
|
||||
// To see the default key bindings run `zed: open default keymap`
|
||||
// from the command palette.
|
||||
[
|
||||
{
|
||||
"context": "Editor",
|
||||
|
||||
@@ -1,16 +1,3 @@
|
||||
// Zed settings
|
||||
//
|
||||
// For information on how to configure Zed, see the Zed
|
||||
// documentation: https://zed.dev/docs/configuring-zed
|
||||
//
|
||||
// To see all of Zed's default settings without changing your
|
||||
// custom settings, run `zed: open default settings` from the
|
||||
// command palette (cmd-shift-p / ctrl-shift-p)
|
||||
//
|
||||
// 需要安装的依赖有
|
||||
// 1.Nodejs
|
||||
// 2.jsonnet-language-server
|
||||
// 3.clangd
|
||||
{
|
||||
"tab_size": 4,
|
||||
"vim_mode": false,
|
||||
@@ -22,9 +9,6 @@
|
||||
"light": "One Light",
|
||||
"dark": "One Dark",
|
||||
},
|
||||
"file_types": {
|
||||
"Jsonnet": ["cfg"],
|
||||
},
|
||||
"lsp": {
|
||||
"clangd": {
|
||||
"binary": {
|
||||
@@ -42,12 +26,5 @@
|
||||
],
|
||||
},
|
||||
},
|
||||
"jsonnet-language-server": {
|
||||
"settings": {
|
||||
"formatting": {
|
||||
"indent": 4,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
[
|
||||
{
|
||||
"label": "CmakeConfig",
|
||||
"label": "Config",
|
||||
"command": "cmd",
|
||||
"env": {
|
||||
"VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
"BUILDTOOL": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"$VS2026ENV && cmake -Bbuild -G Ninja -S . -DCOMPILE_GUI=ON -DCMAKE_BUILD_TYPE=Debug",
|
||||
"\"%BUILDTOOL% && cmake -Bbuild -G Ninja -S . -DCMAKE_PREFIX_PATH=C:\\Kit\\Qt6 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON\"",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
"use_new_terminal": false,
|
||||
@@ -15,12 +15,12 @@
|
||||
"show_summary": true,
|
||||
},
|
||||
{
|
||||
"label": "CmakeBuild",
|
||||
"label": "Build",
|
||||
"command": "cmd",
|
||||
"env": {
|
||||
"VS2026ENV": "\"C:\\Program Files\\Microsoft Visual Studio\\18\\Community\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
"BUILDTOOL": "\"C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Auxiliary\\Build\\vcvars64.bat\"",
|
||||
},
|
||||
"args": ["/c", "$VS2026ENV && cmake --build build --config Debug"],
|
||||
"args": ["/c", "\"%BUILDTOOL% && cmake --build build --config Debug\""],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
"use_new_terminal": false,
|
||||
"show_command": true,
|
||||
|
||||
Reference in New Issue
Block a user