Atom - 注释对齐
Atom - alignment of comments
我用 Atom 写 Python。是否有任何包或热键可用于对齐评论,如下所示:
G = nx.from_pandas_edgelist(df, # the df containing the data
source='u', # first element of the dyad
target='v', # second element of the dyad
edge_attr='weight')# weight
您可以在 Atom 中创建自己的键盘映射。您可以粘贴此代码:
'atom-text-editor':
'ctrl-cmd-]': 'editor:auto-indent'
这将创建一个键盘映射,当您按下 ctrl+cmd+j
时它会自动缩进。
Note: The above will work in macOS. For windows or linux, you need to change cmd
.
我用 Atom 写 Python。是否有任何包或热键可用于对齐评论,如下所示:
G = nx.from_pandas_edgelist(df, # the df containing the data
source='u', # first element of the dyad
target='v', # second element of the dyad
edge_attr='weight')# weight
您可以在 Atom 中创建自己的键盘映射。您可以粘贴此代码:
'atom-text-editor':
'ctrl-cmd-]': 'editor:auto-indent'
这将创建一个键盘映射,当您按下 ctrl+cmd+j
时它会自动缩进。
Note: The above will work in macOS. For windows or linux, you need to change
cmd
.