WengQiang's Blog

where there is a will, there is a way!

linkages in function and object

1
2
3
4
5
6
7
8
9
10
11
/* object */	  /* function */

int o1; int f1(); /* external linkage */
static int o2; static int f2(); /* internal linkage */
static int o3; static int f3(); /* internal linkage */

static int o1; static int f1(); /* ERROR, both have external linkage */
int o2; /* ERROR, o2 has internal linkage */
int f2(); /* OK, picks up internal linkage */
extern int o3; extern int f3(); /* OK, both pick up internal linkage */

阅读全文 »

更改/添加or删除系统文件

  1. usb连接手机到电脑上 adb devices

  2. 取得root权限 adb root

  3. 重新挂载 adb remount

  4. 进行添加or删除 adb pull/push xxxx

阅读全文 »

标签页跳转

shift + cmd + ]

vscode

  1. 搜索打开文件内的某个方法或变量
    ctrl + p then @ or @:(which list current methods and vars in file)
  2. 搜索全局的某个方法或变量 ctrl + p then #
  3. 跳到配对的括号 ctrl or cmd + shift + \
  4. 多行操作 shift + alt then 操作光标

ctrl + command + 方向键

看完帮助等后进行返回

ctrl + command + ?(shift + ?)

打开选中项的帮助文档

command + delete

delete to beginning of the line

阅读全文 »

key binding

  1. go to source: shift + cmd + s(cmd + click) go to declaration: shift + cmd + d

  2. edit history previous item: ctrl + cmd + left-arrow edit history next item: ctrl + cmd + right-arrow

0%