vscode 阅读 android以及kernel 源码

在Ubuntu系统中安装vscode

参考文档:

https://blog.csdn.net/m0_57368670/article/details/127184424

1, 下载vscode

https://code.visualstudio.com

2, 安装vscode

$ sudo dpkg -i code_1.78.1-1683194560_amd64.deb

3, 打开vscode

$ code

vscode 阅读 android以及kernel 源码

参考文档:

https://blog.csdn.net/lyndon_li/article/details/127955889
sudo apt install globa l

vscode安装 c/c++ gnu global插件
Ctrl + Shift + P 执行 Rebuild Gtags Database ,等待数分钟在vscode右下角显示Build tag files successfully,表示索引建立成功。同时在工作目录会生成三个文件,GRTAGS,GTAGS,GPATH,

通过 Ctrl + 鼠标左键 进行代码跳转

总结:

打开Visual Studio Code -> File -> Open Folder -> 选择android以及kernel源码目录或某个子目录打开 -> Ctrl + Shift + P 执行 Rebuild Gtags Database

vscode护眼色配置

打开Visual Studio Code -> File -> Preferences -> Settings -> 点击"Open Settings(JSON)"文本图标,添加如下护眼色配置。

bash 复制代码
{
    "editor.fontSize": 16,
    "workbench.iconTheme": null,
    "workbench.preferredLightColorTheme": "Visual Studio 2017 Dark - C++",
    "workbench.preferredHighContrastLightColorTheme": "Visual Studio 2017 Light - C++",
    "workbench.preferredHighContrastColorTheme": "Visual Studio 2017 Dark - C++",
    "workbench.colorTheme": "Atom One Light",
    "window.zoomLevel": 1,

    "workbench.colorCustomizations": {
        "[Atom One Light]": {
            "editor.background": "#C7EDCC",
            "sideBar.background": "#C7EDCC",
            "activityBar.background": "#C7EDCC", 
            },
        },

    "workbench.editor.limit.enabled": true,
    "workbench.editor.limit.value": 15,



}
相关推荐
深紫色的三北六号9 小时前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移
SudosuBash13 小时前
[CS:APP 3e] 关于对 第 12 章 读/写者的一点思考和题解 (作业 12.19,12.20,12.21)
linux·并发·操作系统(os)
哈基咪怎么可能是AI1 天前
为什么我就想要「线性历史 + Signed Commits」GitHub 却把我当猴耍 🤬🎙️
linux·github
十日十行2 天前
Linux和window共享文件夹
linux
木心月转码ing2 天前
WSL+Cpp开发环境配置
linux
崔小汤呀3 天前
最全的docker安装笔记,包含CentOS和Ubuntu
linux·后端
何中应3 天前
vi编辑器使用
linux·后端·操作系统
何中应3 天前
Linux进程无法被kill
linux·后端·操作系统
何中应3 天前
rm-rf /命令操作介绍
linux·后端·操作系统
何中应3 天前
Linux常用命令
linux·操作系统