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,



}
相关推荐
C_心欲无痕6 小时前
ts - tsconfig.json配置讲解
linux·前端·ubuntu·typescript·json
冰西瓜6006 小时前
国科大2025操作系统高级教程期末回忆版
linux
HIT_Weston7 小时前
93、【Ubuntu】【Hugo】搭建私人博客:面包屑(一)
linux·运维·ubuntu
cuijiecheng20188 小时前
Linux下Beyond Compare过期
linux·运维·服务器
HIT_Weston8 小时前
92、【Ubuntu】【Hugo】搭建私人博客:侧边导航栏(六)
linux·运维·ubuntu
CodeAllen嵌入式8 小时前
Windows 11 本地安装 WSL 支持 Ubuntu 24.04 完整指南
linux·运维·ubuntu
码农小韩9 小时前
基于Linux的C++学习——指针
linux·开发语言·c++·学习·算法
wdfk_prog10 小时前
[Linux]学习笔记系列 -- [fs]seq_file
linux·笔记·学习
Jay Chou why did10 小时前
wsl安装完无法进入wsl
linux
石头53011 小时前
Rocky Linux 9.6 docker k8s v1.23.17 kubeadm 高可用部署文档
linux