Indent issue after pasting
- belong: Emacs programming tips
有时候在代码块中,拷贝其他地方粘贴过来的代码,往往会出现第一行缩进,但是其他行没有缩进的情况
这是因为Emacs中的 C-y yank 功能只是 复制原始文本 ,插入到光标位置,他不会触发缩进

解决方法
- 手动,Emacs 的 indent-region 功能
- 手动,format全部代码 / lsp-bridge-code-format
c-ts-mode-indent-defun在一个方法里面 call C-c C-q 格式化整个方法缩进