gpt4 book ai didi

emacs - 在 emacs 中转换结构化文本 block

转载 作者:行者123 更新时间:2023-12-02 04:59:18 25 4
gpt4 key购买 nike

我想向专家学习如何将这段文字从

    sa.Column('id', sa.Integer, primary_key=True),
sa.Column('title', sa.String(100)),
sa.Column('isbn', sa.String(20)),
sa.Column('authors',sa.String(400),nullable=False),
sa.Column('year',sa.Integer,nullable=False)

  id          = Column(Integer, primary_key=True)
title = Column(String(100))
isbn = Column(String(20))
authors = Column(String(400),nullable=False)
year = Column(Integer,nullable=False)

使用多光标的任一宏。请说明一下。

最佳答案

我就是这样做的,虽然我的一般建议是多看几次,找到一般的东西,然后记录一个宏(有时包括错误;重新做一遍,或者继续它没有害处)

<start recording>

Macro:

C-SPC ;; set-mark-command
<C-right> ;; right-word
<right> ;; right-char
C-. ;; mark-next-like-this
<backspace> ;; delete-char
2*<C-right> ;; right-word
2*<right> ;; right-char
2*<backspace> ;; delete-char
M-DEL ;; backward-kill-word
<backspace> ;; delete-char
M-\ ;; delete-horizontal-space
C-e ;; end-of-line
<backspace> ;; delete-char
C-a ;; beginning-of-line
C-y ;; yank
SPC ;; self-insert-command
= ;; self-insert-command
SPC ;; self-insert-command
C-a ;; beginning-of-line
<down> ;; next-line

<end recording>

关于emacs - 在 emacs 中转换结构化文本 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17385420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com