Shortcuts, get rid of mouse

Neovim:

:db close the current buffer

gd go to the definition

<C-o> → go back to the previous location

<C-i> → go forward (after going back)

select all: ggVGy

accept copilot suggestion: ctrl + l

Visual box: ctrl + v select lines by j k l, then do insert (capital I) or delete (small case d) . A is append after.

Linux:

shift + ctrl + w close a terminal

VS code

cursor focus

  • Editor → Terminal: `Ctrl + “
  • Terminal → Editor: Ctrl + 1
  • file explore: ctrl + shift + e
  • stop debugging mode: shift + F5
  • select the same terms all together:

ctrl + f to find the term,

ctrl + 1 focus on the editor

ctrl + shift + l to find all the same term and edit together

ctrl + d select a word

  • Go to definition: F12

go to declaration: ctrl + F12

go back: linux: ctrl + alt + <- mac: ctrl + <-

peek definition: alt + F12 mac: option + f12

go to type definition: linux: Ctrl + Shift + T mac: Cmd + Shift + T

  • show hover debugging info: ctrl + k then ctrl + i

Browser

Chrome

focus to the editor of wordpress: alt + shift + w

Firefox

ctl + tab : check the next open tab

ctl + t : open a new tab