C++
CLion 突然发现输入 vector 不补全尖括号了,后来发现设置成 c11 就行了即 set(CMAKE_CXX_STANDARD 11)
早日远离M$C++,早日获得新生😋
关闭函数参数提示(inlay hints) ctrl+shift+p;clangd:toggle inlay hints
智能补全不把参数填入 源链接,在 setting.json
加入
"clangd.arguments": [
"--function-arg-placeholders=0"
],
markdown preview enhanced
- 打印背景(让代码块背景为灰色) 教程
vscode
ctrl+k arrowKey 调整窗口位置,配合 ctrl+\
VIM
edit keys
- visio block后进入insert
Shift-i
- undo all the changes on a line,
type U
- replace steadily
R
- changes to the end
C / D
- put before the cursor
P
- delete the char under cursor and enter insert mode
s
, andS or CC
is the whole line - search the word under cursor forward/backward
\* #
and can use4\
* to use number
move keys
- move to the beginning of sentence/paragraph/block
( { [in normal
file keys
- show where you are in a file
<C-g>
- jump to file under cursor
<C-]>
- retrieves disk file FILENAME and puts it below the cursor position
:r FILENAME
buffer and windows
- list all open buffers
ls
- switch to a specific buffer
:b N
- change buffer
bn/bp or :buffer (press tab)
buffer next/previous - toggles between the last two files you edited
<C-^>
. press ctrl and 6 or ctrl shift 6