标签:ima comm append select extc 选择 text bing 快速
效果图
直接上代码
# 独立选择每一行(在当前选中范围内)
class SelectEverySingleLine(sublime_plugin.TextCommand):
def run(self, edit):
# self.view.run_command(‘select_all‘)
# for region in self.view.lines(sublime.Region(0, self.view.size())):
# self.view.selection.add(region)
lines = []
for region in self.view.sel():
for r in self.view.lines(region):
lines.append(r)
# self.view.selection.add(r)
self.view.selection.clear()
for r in lines:
self.view.selection.add(r)
然后设置好快捷键
然后就可以玩耍了
标签:ima comm append select extc 选择 text bing 快速
原文地址:https://www.cnblogs.com/hangj/p/13140710.html