⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parameter.c

📁 emacs的一个非常有用的插件,叫xrefactory,可以实现source insight里的那种函数跳转.和cscope(跳回来不方便)配合使用,非常的不错.
💻 C
字号:
#include <stdio.h>/*  Put cursor on the FUNCTION NAME (not on the parameter) and press F11  or  invoke  'Xref  ->  Refactor'.   Then  move  to  the  appropriate  refactoring in the proposed menu and press <return>.  */static int arg = 1;// add another parameter to function printintvoid printint(int j) {    printf("j == %d", j);}// remove parameter of printNewlinevoid printNewline(int i) {    printf("\n");}// removing of used parameter issues warning messagevoid printNewlines(int i) {    for(; i>0; i--) printf("\n");}// adding a parameter named 'arg' here will report symbol clashvoid printArg() {    printf("arg == %d\n", arg);}void addRemoveParameter() {    printint(1);    printNewline(1);}/*  (multiple) F5 will bring you back to index*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -