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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章