diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js
index 2874c40..dfd49f4 100644
--- a/docs/.vitepress/config.js
+++ b/docs/.vitepress/config.js
@@ -49,18 +49,30 @@ export default {
{text: 'Linux踩坑日记', link: '/linux/linux'},
{text: '学习使用Neovim', link: '/linux/01-nvim'},
{text: 'Rime输入法', link: '/linux/02-rime'},
- {text: 'Jetbrains系列', link: '/linux/03-jetbrains'},
]
}
],
'/game/': [
{
- // text: '游戏记录',
items: [
{text: '图灵完备Turing Complete', link: '/game/turing_complete'},
]
}
],
+ '/jetbrains/': [
+ {
+ text: '针对于所有IDE',
+ items: [
+ {text: '按键冲突问题排查', link: '/jetbrains/base/keymap'},
+ ]
+ },
+ {
+ text: 'Clion',
+ items: [
+ {text: '配置nlohmann_json', link: '/jetbrains/clion/nlohmann_json'},
+ ]
+ }
+ ],
},
socialLinks: [
{ icon: 'gitee', link: 'https://gitee.com/song_kang_shuai' },
diff --git a/docs/index.md b/docs/index.md
index 19ef5b3..c4b4723 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -19,6 +19,9 @@ features:
- title: Linux笔记
details: 接下来一段时间会持续记录Linux相关笔记,主要是以ubuntu22.04操作系统为主
link: /linux/linux
+ - title: Jetbrains系列
+ details: 我主要的开发工具为 Clion Idea Pycharm 期间又需要配置的我就列出来做个记录
+ link: /jetbrains/base/keymap
- title: 瑞芯微系列
details: 目前再学习瑞芯微系列的开发版,目前围绕RK3506与RK3566系列
- title: ESP32系列
diff --git a/docs/linux/03-jetbrains.md b/docs/jetbrains/base/keymap.md
similarity index 64%
rename from docs/linux/03-jetbrains.md
rename to docs/jetbrains/base/keymap.md
index a09446d..a03ef63 100644
--- a/docs/linux/03-jetbrains.md
+++ b/docs/jetbrains/base/keymap.md
@@ -1,22 +1,31 @@
---
layout: doc
---
-# Jetbrains 系列IDE在ubuntu使用
-与windows 不同,ubuntu使用Jetbrains 系列IDE会有一些快捷键冲突,导致使用的时候很难受,下面就是来解决冲突问题
+# Jetbrains 系列IDE快捷键冲突
+使用Jetbrains 系列IDE会有一些快捷键冲突,导致使用的时候很难受,下面就是来解决冲突问题,下面是常见的冲突问题
## 搜索快捷键Ctrl+Alt+F
按下 Ctrl + Alt + F 即可触发搜索功能,但是这个被输入法给占用了,需要删除配置
+### ubuntu
一般是输入法占用了,在`设置`里找到`键盘`,然后输入法的 `首选项` 点击`快捷键`把 `ctrl+alt+f` 的删除即可
+### windows
+一般也是输入法配置,具体的可以看一下自己使用的输入法快捷键设置
## 前进后退Ctrl+Alt+左右箭头
-如果使用windows按键布局就是 按下
-
-Ctrl + Alt + < 和 Ctrl + Alt + >
-
+### windows
+如果使用windows按键布局就是 按下
+Ctrl + Alt + < 和 Ctrl + Alt + >
可以前进与后退
-不过现在默认使用了GNOME的按键映射而不是windows,GNOME的前进后退如下:
+### ubuntu
+在ubuntu下按下
+
+Ctrl + Alt + < 和 Ctrl + Alt + >
+
+会切换工作区,误以为是快捷键冲突,其实是默认使用了GNOME的按键映射而不是windows
+
+GNOME的前进后退如下:
Alt + Shift + < 和 Alt + Shift + >
diff --git a/docs/jetbrains/clion/assets/2b831QiRnU1H.png b/docs/jetbrains/clion/assets/2b831QiRnU1H.png
new file mode 100644
index 0000000..e99bd2c
Binary files /dev/null and b/docs/jetbrains/clion/assets/2b831QiRnU1H.png differ
diff --git a/docs/jetbrains/clion/assets/ZD2tN5w5K6Eg.png b/docs/jetbrains/clion/assets/ZD2tN5w5K6Eg.png
new file mode 100644
index 0000000..b3f8907
Binary files /dev/null and b/docs/jetbrains/clion/assets/ZD2tN5w5K6Eg.png differ
diff --git a/docs/jetbrains/clion/nlohmann_json.md b/docs/jetbrains/clion/nlohmann_json.md
new file mode 100644
index 0000000..718fd68
--- /dev/null
+++ b/docs/jetbrains/clion/nlohmann_json.md
@@ -0,0 +1,36 @@
+---
+layout: doc
+---
+# 配置Clion的 nlohmann_json
+为什么要配置这个库?
+
+显然配置前是这个样子的,很难排查json里面有什么内容
+
+
+## 开始配置
+我的Cmake项目外部库模块在components
+其中 nlohmann_json 是 git clone 的
+```shell
+git clone https://github.com/nlohmann/json.git
+```
+
+那么在 目录里会有这么一个文件,这个文件是GDB调试器的脚本
+
+components/nlohmann_json/tools/gdb_pretty_printer/nlohmann-json.py
+
+在项目根目录创建.gdbinit文件,添加:
+```shell
+source components/nlohmann_json/tools/gdb_pretty_printer/nlohmann-json.py
+# 设置打印选项
+set print pretty on
+set print object on
+set print array on
+```
+如果你没有配置过`~/.gdbinit` 启动会出错,提示不安全
+追加全局设置为安全路径
+```shell
+echo "set auto-load safe-path /" >> ~/.gdbinit
+```
+再次启动调试即可
+
+