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,



}
相关推荐
为思念酝酿的痛18 小时前
POSIX信号量
linux·运维·服务器·后端
czy878747519 小时前
vscode编译make命令要修改stm32cubemx生成的STM32F103XX_FLASH.ld文件
ide·vscode·stm32
人还是要有梦想的20 小时前
linux下用搜狗输入法,中英文切换
linux·运维·服务器
bush420 小时前
嵌入式linux学习记录二
linux·运维·学习
9分钟带帽20 小时前
linux_通过NFS挂载远程服务器的硬盘
linux·服务器
运维栈记1 天前
API Error: 400 Request body format invalid
linux·ai
小白兔奶糖ovo1 天前
【Leetcode】231. 2的幂
linux·算法·leetcode
s_w.h1 天前
【 linux 】动静态库的制作
linux·运维·服务器·算法·bash
顺风尿一寸1 天前
深入Linux内核:mkdir系统调用的完整实现解析
linux
用户2367829801681 天前
Linux free 命令深度解析:从内存监控到 OOM 排查的完整指南
linux