Skip to content
Snippets Groups Projects
Commit 8eb6054b authored by Dragos Iulian ARGINT's avatar Dragos Iulian ARGINT
Browse files

Add info on how to use VScode


Signed-off-by: default avatarDragos Iulian ARGINT <dragosargint21@gmail.com>
parent 439d7069
No related branches found
No related tags found
No related merge requests found
......@@ -63,6 +63,26 @@ $ make build
> You DO NOT need to reboot the VM each time you build modules.
> But if you want to stop the Virtual Machine use the following key combination `Ctrl + A then q`.
# Searching Symbols Using VIM + CSCOPE
The kernel compiled within the Docker image also features a cscope database, which you can utilize with vim for symbol searching.
TODO: add commands
# Using VSCode
Even though we love `vim`, it's not the only editor out there.
If you want something fancier, you can use VSCode.
To accomplish this, you'll need to access the directory where the `/linux` tree is mounted on your host system.
This information is displayed at the beginning when you execute the `local.sh` script.
![VScode](./img/VScode.png)
You will probably need to start VScode as the `root` user:
```
sudo code --no-sandbox --user-data-dir /root
```
And from this point you only need to open the directory listed above at the "Mountpoint" field.
In our case is `/var/lib/docker/volumes/SO2_DOCKER_VOLUME/_data`
# TMUX cheatsheet
* Vertical Split: `Ctrl + b then SHIFT + %`
......
img/VScode.png

45.7 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment