
記事本狀態欄不會自動

The status bar in Windows’ Notepad?displays the current line number and column number of the cursor location. However, if you find?that the ?Status Bar option on the View menu is grayed out, it may be because you have Word Wrap enabled.
Windows記事本中的狀態欄顯示光標位置的當前行號和列號。 但是,如果您發現“視圖”菜單上的“狀態欄”選項顯示為灰色,則可能是因為您啟用了“自動換行”功能。
If you’ve enabled word wrap, which keeps your columns restricted to the Notepad window, you cannot also enable the status bar. That is because word wrap screws up line breaks, making the line number and column number on the status bar not accurate all the time.
如果啟用了自動換行,使您的列限制在“記事本”窗口中,則也無法啟用狀態欄。 這是因為自動換行會打斷換行符,從而使狀態欄上的行號和列號始終不準確。
However, if you want to enable the status bar anyway, despite its possible inaccuracy, we’ll show you an easy trick to make the status bar option available even when word wrap is on.
但是,如果您仍然想啟用狀態欄,盡管它可能存在誤差,我們將向您展示一個簡單的技巧,即使打開自動換行功能,也可以使狀態欄選項可用。
Standard warning: This procedure involves making changes to the Registry Editor, which is a powerful tool. Using the Registry Editor incorrectly can render your system unstable or even inoperable. This is a pretty simple hack and as long as you follow the instructions carefully, you shouldn’t have any problems. That said, if you’ve never worked with it before, consider reading about how to use the Registry Editor before you get started. And definitely back up the Registry (and your computer!) before making changes.
標準警告:此過程涉及更改注冊表編輯器,它是一個功能強大的工具。 錯誤地使用注冊表編輯器會使您的系統不穩定甚至無法運行。 這是一個非常簡單的技巧,只要您仔細按照說明進行操作,就不會有任何問題。 也就是說,如果您以前從未使用過它,請在開始之前考慮閱讀有關如何使用注冊表編輯器的信息。 并在進行更改之前一定要備份注冊表(和您的計算機!)。
Open the Registry Editor by clicking on Start and typing “regedit.” Press Enter to open Registry Editor, or click on regedit under Best match.
通過單擊開始并鍵入“ regedit”,打開注冊表編輯器。 按Enter打開注冊表編輯器,或單擊“最佳匹配”下的regedit。

Give regedit permission to make changes to your PC.
授予regedit權限以對您的PC進行更改。
NOTE: You may not see this dialog box, depending on your User Account Control settings.
注意:根據您的“用戶帳戶控制”設置,您可能看不到此對話框。

In the tree structure on the left, navigate to the following key:
在左側的樹結構中,導航到以下鍵:
HKEY_CURRENT_USER\Software\Microsoft\Notepad
The Notepad key stores all the settings for Notepad. In Notepad’s initial state, the only values for that key are window position values. Notice that there are no values for the word wrap and status bar settings. Leave the Registry Editor open.
記事本鍵存儲記事本的所有設置。 在記事本的初始狀態下,該鍵的唯一值是窗口位置值。 請注意,自動換行和狀態欄設置沒有任何值。 使注冊表編輯器保持打開狀態。

Open Notepad and turn on “Word Wrap” in the Format menu. This adds the word wrap ( fWrap
) and status bar ( StatusBar
) values to the Notepad key in the registry.
打開記事本,然后在“格式”菜單中打開“自動換行”。 這會將自動換行( fWrap
)和狀態欄( StatusBar
)值添加到注冊表中的記事本項。

Notice that the status bar goes away and the “Status Bar” option in the View menu is grayed out. Close Notepad to save these settings into the Notepad registry key.
請注意,狀態欄消失了,“視圖”菜單中的“狀態欄”選項顯示為灰色。 關閉記事本以將這些設置保存到記事本注冊表項中。

Now, the fWrap
and StatusBar
keys?have been added to the Notepad key. Currently, the StatusBar
value has zero as it’s value data, indicating it’s disabled. Double-click on the StatusBar
value.
現在, fWrap
和StatusBar
鍵已添加到記事本鍵。 當前, StatusBar
值的值數據為零,表示已禁用。 雙擊StatusBar
值。

On the Edit DWORD (32-bit) Value dialog box, enter ?1
?in the “Value data” edit box and click “OK”.
在“編輯DWORD(32位)值”對話框中,在“值數據”編輯框中輸入1
,然后單擊“確定”。

Close the Registry Editor by selecting “Exit” from the File menu.
通過從文件菜單中選擇“退出”,關閉注冊表編輯器。

Now, word wrap and the status bar are enabled at the same time. However, If you turn off word wrap and then turn it back on, the status bar will be?disabled again. You must set the StatusBar
value to ?1
?again to be able to have both enabled.
現在,自動換行和狀態欄同時啟用。 但是,如果關閉自動換行然后再打開,狀態欄將再次被禁用。 您必須再次將StatusBar
值設置為1
才能同時啟用它們。

If you want to put word wrap and the status bar back to their normal settings, reset Notepad. Simply changing the value of the StatusBar value back to zero only seems to confuse Notepad and the values and what’s set in Notepad won’t necessarily match.
如果要將自動換行和狀態欄恢復為正常設置,請重置記事本。 僅將StatusBar值的值更改回零似乎只會使記事本感到困惑,并且記事本中的值和設置不一定會匹配。
翻譯自: https://www.howtogeek.com/256491/how-to-enable-the-status-bar-and-word-wrap-at-the-same-time-in-notepad/
記事本狀態欄不會自動