1. 配置 linux C++ 开发环境
vscode 安装 C/C++
; Code Runner
插件。
# 安装 gdb
sudo apt-get update
sudo apt-get install gdb
点运行按钮就可以 调试和运行 代码了。
2. 配置 oh-my-zsh
我选的主题是 ys
。
复制粘贴 卡住:
~/.zshrc
# This speeds up pasting w/ autosuggest
# https://github.com/zsh-users/zsh-autosuggestions/issues/238
pasteinit() {
OLD_SELF_INSERT=${${(s.:.)widgets[self-insert]}[2,3]}
zle -N self-insert url-quote-magic # I wonder if you'd need `.url-quote-magic`?
}
pastefinish() {
zle -N self-insert $OLD_SELF_INSERT
}
zstyle :bracketed-paste-magic paste-init pasteinit
zstyle :bracketed-paste-magic paste-finish pastefinish
参考: https://www.jianshu.com/p/990429db9067
标签:magic,oh,vscode,zsh,C++,my,paste From: https://www.cnblogs.com/odesey/p/17207455.html