ThinkPositive0x0

Results 1 comments of ThinkPositive0x0

> 55秒的录屏: ![iShot2021-04-02-19 51 31](https://user-images.githubusercontent.com/51874567/113417585-47c0fd00-93f6-11eb-88bb-86afcc0219e2.gif) > > 不知道是st4的原因,还是lsp的原因,还是其他原因,文件头不能添加,但是能对已添加的文件头进行更新。 > > 配置文件里只配置了author和email,没有其他配置 可以打开控制台(Ctrl+`)查看一下FileHeader是否是报的decode error。 如果是的话,可以在ST4 的Data/Packages/FileHeader 文件夹里面[添加一个内容为3.8,名字为.python-version的文件](https://www.sublimetext.com/docs/api_environments.html)来解决。 ST4 默认调用Python 3.3,encoding 貌似并不跟随ST4里的全局default encoding设置 (中文 win 11 系统会出现这个问题) 。改为调用3.8版本后此问题就解决了。