4

【笨問題】VSCode 無法編輯過長文字

 2 years ago
source link: https://blog.darkthread.net/blog/vscode-long-text-editing/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笨問題】VSCode 無法編輯過長文字

calendar.svg 2022-05-18 10:37 PM comment.svg 2 eye.svg 777

發現 VSCode 有個問題,當一行文字過長,最尾端會變成 ... (刪節號),水平捲軸即使移到最右側也不會展開,因此看不到後面的文字也無法編輯。(我最常遇到的狀況是 Data Uri)

Fig1_637884815577514942.gif

爬文才知,VSCode 水平捲軸一直有 10,000 字元的限制,存在超過五年了,但解法很簡單,開啟自動換行就好了。

用萬用大絕 Ctrl + Shift + P 叫出 Command Palette,輸入關鍵字 Word 或 Wrap,可查到按 Alt + Z 可切換自動換行,切換後就能編輯完整內容了。

Fig2_637884815579300653.gif

同場加映,如果覺得右側垂直捲軸的 Minimap 沒什麼用又佔位地方,也可從 Command Palette 把它關掉。

Fig3_637884815580908080.gif

再解決兩個笨問題。

and has 2 comments

Comments

Post a comment

Comment
Name Captcha 41 - 25 =

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK