相关疑难解决方法(0)

在Emacs中,如何排列等于一系列初始化语句中的符号?

我在某个地方看到了这个,但现在找不到了.在emacs中是否有内置函数,或者有人有elisp,在cc模式中排列一系列初始化状态中的所有等号?

之前:

int t=9;
Graphics g = new Graphics();
List<String> list = new List<String>();
Run Code Online (Sandbox Code Playgroud)

后:

int          t    = 9;
Graphics     g    = new Graphics();
List<String> list = new List<String>();
Run Code Online (Sandbox Code Playgroud)

emacs formatting code-formatting

27
推荐指数
3
解决办法
5048
查看次数

在Emacs中右对齐文本

有时,我在Emacs中有这样的文本文件:

some text     123     17
other text    1       0
still more    12      8
last one      1234    123
Run Code Online (Sandbox Code Playgroud)

我想对齐数字(使用空格),将其更改为以下内容:

some text      123     17
other text       1      0
still more      12      8
last one      1234    123
Run Code Online (Sandbox Code Playgroud)

如何在Emacs中完成?

emacs text-alignment

8
推荐指数
1
解决办法
2573
查看次数