萬盛學電腦網

您现在的位置: 萬盛學電腦網 >> 程式設計 >  >> 網路程式設計 >> 程式語言綜合

PhpStorm 8 啟用編輯器自動換行(Soft Wraps)設定圖文教學

一鍵開啟 Soft Wraps

  1. 開啟 File → Settings(macOS: PhpStorm → Preferences)。
  2. 左側導航:Editor → General → Virtual Space。
  3. 勾選 Use soft wraps in editor。
  4. 點 Apply / OK 即時生效。

補充:針對特定檔案類型設定

  1. Editor → General → Soft Wraps。
  2. 在 Use soft wraps in these file types 加入檔案類型(如 *.md、*.txt、*.php)。
  3. 可同時勾選 Use original line's indentation for wrapped parts 保持縮排對齊。

效果對比

未啟用啟用後
長行需水平捲動自動在視窗寬度換行顯示,不改變實際檔案內容

結語

Soft Wraps 純屬編輯器視覺輔助,**不會在檔案寫入換行字元**。適合寬螢幕、Markdown、長字串編輯場景,保護頸椎、提升閱讀效率。

copyright © 萬盛學電腦網 all rights reserved