📄 utils.py
字号:
import re
def getLineSeperator(line):
if line.endswith("\r\n"):
linesep = "\r\n" # windoze
else:
linesep = line[-1] # mac or unix
return linesep
def getTabWidthOfLine(line):
match = re.match("\s+",line)
if match is None:
return 0
else:
return match.end(0)
def reverseCoordsIfWrongWayRound(startcoords,endcoords):
if(startcoords.line > endcoords.line) or \
(startcoords.line == endcoords.line and \
startcoords.column > endcoords.column):
return endcoords,startcoords
else:
return startcoords,endcoords
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -