首页 > 系统相关 >vscode 配置 linux C++ 开发环境 和 终端配置 oh-my-zsh

vscode 配置 linux C++ 开发环境 和 终端配置 oh-my-zsh

时间:2023-03-12 23:13:36浏览次数:58  
标签:magic oh vscode zsh C++ my paste

1. 配置 linux C++ 开发环境

vscode 安装 C/C++Code Runner 插件。

# 安装 gdb
sudo apt-get update
sudo apt-get install gdb 

点运行按钮就可以 调试和运行 代码了。

2. 配置 oh-my-zsh

配置 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

相关文章