Terminal shortcuts

<backspace> 删除

<ctrl+l> 清空屏幕, 相当于clear

<ctrl+e> 光标跳至命令结尾

<ctrl+a> 光标跳至命令开始

<ctrl+b> 光标左移一个字母(感觉比按方向键快些)

<ctrl+f> 光标右移一个字母

<ctrl+t> 交换光标位置前的两个字符(敲错顺序的时候)

<ctrl+h> 删除光标前一个字符,同 <backspace> 键相同

<ctrl+w> 移除光标前的一个单词

<ctrl+u> 清除光标前至行首间的所有内容

<ctrl+k> 清除光标后至行尾的内容

<ctrl+w> 删除此处到左边的单词 

<ctrl+y> 粘贴或者恢复上次的删除

<ctrl+p> 前一个命令

<ctrl+n> 后一个命令

<ctrl+s> 锁定键盘

<ctrl+q> 解锁键盘

<ctrl+c> 中断当前的命令并返回Shell. 【终止当前进程】

<ctrl+d> 中断当前的通信或从文件中退出【退出shell】

<ctrl+z> 暂停当前进程bg后台运行,fg转到前台 (习惯bg,fg操作,效率大大提升)

<Alt+.> 前一个命令的最后一个参数

<Alt+c> 光标所在的单词的第一个字母大写

<Alt+d> 删除光标所在位置的单词

<Alt+l> 光标所在位置的单词变小写

<Alt+u> 光标所在位置的单词变大写

<Alt+n> Search the history forwards non-incremental

<Alt+p> Search the history backwards non-incremental

<Alt+r> Recall command

<Alt+t> Move words around

<Alt+back-space> 删除光标前面的一个单词

alt+shift+f 光标位置移动到前一个单词 

alt+shift+b 光标位置移动到后一个单词

转载于:https://www.cnblogs.com/MimiSnowing/p/10562901.html

### 回答1: 1. 安装VSCode:打开终端,输入以下命令 ``` sudo apt update sudo apt install code ``` 2. 安装常用插件:打开VSCode,按下Ctrl+Shift+X,搜索并安装以下插件 - Chinese (Simplified) Language Pack for Visual Studio Code - GitLens — Git supercharged - Live Server - Prettier - Code formatter - Bracket Pair Colorizer 2 - Path Intellisense 3. 配置VSCode:打开VSCode,按下Ctrl+Shift+P,输入“settings”,选择“Open User Settings”,在右侧的编辑器中添加以下配置 ``` "editor.fontSize": 16, "editor.tabSize": 2, "editor.wordWrap": "on", "editor.formatOnSave": true, "editor.minimap.enabled": false, "workbench.colorTheme": "Default Light+", "workbench.iconTheme": "vscode-icons", "terminal.integrated.fontSize": 16, "terminal.integrated.shell.linux": "/bin/bash", "files.autoSave": "onFocusChange", "files.exclude": { "**/.git": true, "**/.svn": true, "**/.hg": true, "**/CVS": true, "**/.DS_Store": true }, "git.autofetch": true, "git.enableSmartCommit": true, "git.confirmSync": false, "git.defaultCloneDirectory": "~/Documents/GitHub", "gitlens.advanced.messages": { "suppressShowKeyBindingsNotice": true }, "liveServer.settings.donotShowInfoMsg": true, "liveServer.settings.donotVerifyTags": true, "liveServer.settings.port": 5500, "liveServer.settings.root": "/path/to/project", "prettier.singleQuote": true, "prettier.trailingComma": "all", "prettier.printWidth": 120, "prettier.tabWidth": 2, "prettier.useTabs": false, "prettier.jsxSingleQuote": true, "prettier.jsxBracketSameLine": false, "prettier.arrowParens": "avoid", "prettier.bracketSpacing": true, "prettier.semi": true, "prettier.proseWrap": "always", "prettier.htmlWhitespaceSensitivity": "ignore", "prettier.endOfLine": "auto", "bracket-pair-colorizer-2.colors": [ "#FF6B6B", "#74E9FF", "#A9FF9D", "#FFD86B", "#FF74F5", "#B2B2B2" ], "path-intellisense.autoSlashAfterDirectory": true, "path-intellisense.extensionOnImport": true, "path-intellisense.showHiddenFiles": true, "path-intellisense.ignorePatterns": [ "**/node_modules/**", "**/bower_components/**", "**/dist/**", "**/build/**", "**/coverage/**", "**/.git/**", "**/.svn/**", "**/.hg/**", "**/CVS/**", "**/.DS_Store/**" ] ``` 4. 配置中文输入法:打开终端,输入以下命令 ``` sudo apt install fcitx fcitx-googlepinyin fcitx-config-gtk ``` 打开“设置”->“Region & Language”,将“Input Sources”中的“English (US)”删除,添加“Chinese (Pinyin)”,然后在“Keyboard Shortcuts”中将“Switch to next source”和“Switch to previous source”分别设置为“Ctrl+Space”和“Ctrl+Shift+Space”。 5. 配置终端:打开终端,按下Ctrl+Shift+P,输入“settings”,选择“Open User Settings”,在右侧的编辑器中添加以下配置 ``` "terminal.integrated.shell.linux": "/bin/bash", "terminal.integrated.fontFamily": "Ubuntu Mono", "terminal.integrated.fontSize": 16, "terminal.integrated.cursorStyle": "underline", "terminal.integrated.cursorBlinking": true, "terminal.integrated.scrollback": 10000, "terminal.integrated.rightClickBehavior": "copyPaste", "terminal.integrated.copyOnSelection": true, "terminal.integrated.shellArgs.linux": [ "--login" ] ``` 6. 配置文件管理器:打开终端,输入以下命令 ``` sudo apt install nautilus-admin nautilus-image-converter ``` 打开文件管理器,右键单击文件或文件夹,选择“Open as Administrator”可以以管理员身份打开文件或文件夹;右键单击图片文件,选择“Resize Images”可以调整图片大小。 7. 配置字体:打开终端,输入以下命令 ``` sudo apt install fonts-firacode ``` 在VSCode的设置中将“editor.fontFamily”设置为“Fira Code”,并在“editor.fontLigatures”中添加“'ss'”。 8. 配置主题:打开终端,输入以下命令 ``` sudo apt install gnome-tweaks ``` 打开“Gnome Tweaks”,在“Appearance”中选择“Yaru-dark”主题,在“Fonts”中选择“Fira Code Regular”字体。 9. 配置系统:打开终端,输入以下命令 ``` sudo apt update sudo apt upgrade sudo apt autoremove ``` 以上就是Ubuntu 20.04配置VSCode的步骤。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值