初版可用
This commit is contained in:
8
template/default/.zed/keymap.json
Normal file
8
template/default/.zed/keymap.json
Normal file
@@ -0,0 +1,8 @@
|
||||
[
|
||||
{
|
||||
"context": "Editor",
|
||||
"bindings": {
|
||||
"alt-g": "editor::GoToDefinition",
|
||||
},
|
||||
},
|
||||
]
|
||||
26
template/default/.zed/settings.json
Normal file
26
template/default/.zed/settings.json
Normal file
@@ -0,0 +1,26 @@
|
||||
// Folder-specific settings
|
||||
//
|
||||
// For a full list of overridable settings, and general information on folder-specific settings,
|
||||
// see the documentation: https://zed.dev/docs/configuring-zed#settings-files
|
||||
{
|
||||
"tab_size": 4,
|
||||
"ensure_final_newline_on_save": true,
|
||||
"lsp": {
|
||||
"clangd": {
|
||||
"binary": {
|
||||
"arguments": [
|
||||
"--header-insertion=never",
|
||||
"--all-scopes-completion",
|
||||
"--completion-style=detailed",
|
||||
"--clang-tidy",
|
||||
"-j=4",
|
||||
"--pch-storage=memory",
|
||||
"--compile-commands-dir=build",
|
||||
"--background-index",
|
||||
"--ranking-model=heuristics",
|
||||
"--function-arg-placeholders=false",
|
||||
],
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
54
template/default/.zed/tasks.json
Normal file
54
template/default/.zed/tasks.json
Normal file
@@ -0,0 +1,54 @@
|
||||
[
|
||||
{
|
||||
"label": "Debug-Config",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"env": {
|
||||
"EXT_ARGS": "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=C:/local",
|
||||
"CC": "clang",
|
||||
"CXX": "clang++",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"cmake -Bbuild -S . -G Ninja %EXT_ARGS% -DCMAKE_BUILD_TYPE=Debug",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Debug-Build",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"args": ["/c", "cmake --build build --config Debug"],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Release-Config",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"env": {
|
||||
"EXT_ARGS": "-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_PREFIX_PATH=C:/local",
|
||||
"CC": "clang",
|
||||
"CXX": "clang++",
|
||||
},
|
||||
"args": [
|
||||
"/c",
|
||||
"cmake -Bbuild -S . -G Ninja %EXT_ARGS% -DCMAKE_BUILD_TYPE=Release",
|
||||
],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
{
|
||||
"label": "Release-Build",
|
||||
"command": "cmd",
|
||||
"shell": {
|
||||
"program": "C:\\Windows\\System32\\cmd.exe",
|
||||
},
|
||||
"args": ["/c", "cmake --build build --config Release"],
|
||||
"cwd": "$ZED_WORKTREE_ROOT",
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user