Replacing Text

如果要搜尋檔案中的字串,並以另外一個字串 取代之,請執行下列的步驟:

  1. 請選擇 搜尋 ▸ 取代 ,顯示取代對話方塊。
  2. Type the string that you want to find, in the Search for field. You can include special characters such as a new line or tab: see 第 5.5 節 ― Special Characters.
  3. 將您要用來取代尋找 字串的字串,鍵入取代為欄位中。

To examine each occurrence of the string before replacing it, click Find. If gedit finds the string, the application selects the string. Click Replace to replace the selected occurrence of the string. To find the next occurrence of the string, click Find again.

To replace all occurrences of the string throughout the document, click Replace All.