如何把atom 默认的换行符设置成LF Select File->Settings Select ‘Packages’ Under Core Packages->line-ending-selector, select ‘Settings’ Under the ‘Default line ending’ setting, choose ‘LF’ in the dropdown You new files will now use LF as the default line ending se
设置换行符为Unix编码格式 设置编码统一为UTF-8 自动生成serialVersionUID.勾选"Serializable class without serialVersionUID",光标放在类名上,再次按Alt+Enter键,这个时候可以看到"Add serialVersionUID field"提示信息,点击可以自动生成serialVersionUID.
windows 默认换行符为 \r\n; unix默认换行符为 \n; 所以当win下编辑的脚本在linux下显示末尾多了^M: 换行符修改为同一的unix格式脚本如下: def run(path,file): for file in files: file = path+'\\'+file f = open(file,'r') result = f.read() print result result = result.replace(r'\r\n',r'\n') f.close() # 需要