PyCharm设置自动换行

使用PyCharm编写Python代码, 有时候过长的代码, 会超过边界, 导致阅读或者修改起来很麻烦. 

网上搜索了下解决方案. 

以下两个步骤.

(1)首先打开以下路径,

File --> Settings... --> Editor --> General, 勾上右边的Soft-wrap files, 并在后面的text中, 输入";.py"

(2)再打开以下路径, 

File --> Settings... --> Editor --> General --> Console, 勾上右边的Use soft wraps in console

以上两步骤后, 即可实现换行.

引用:

https://blog.csdn.net/chichu261/article/details/82784904

https://blog.csdn.net/qq_39591494/article/details/83934260

https://intellij-support.jetbrains.com/hc/en-us/community/posts/360003457340-There-is-No-Use-soft-wraps-in-editor-option-in-PyCharm-2019-1-1

发布了49 篇原创文章 · 获赞 13 · 访问量 7万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章