• Skip to main content
  • Skip to primary sidebar

Technipages

Tutorials and fixes for smartphone, gadget, and computer problems

  • Topics
    • Android
    • Gaming
    • Hardware
    • Internet
    • iOS
    • MacOS
    • Office
    • Software
    • Windows
    • Definitions
  • Product Reviews
  • Downloads
  • About Technipages
Find and Replace in Sublime Text 3

Find and Replace in Sublime Text 3

By Mel Hawthorne Leave a Comment

In any text editor Find and Replace can be an incredibly useful function. Find and Replace can be useful in a range of scenarios; for example, if you want to change the name of a variable in your code or fix all instances of a common typo.

To use Find and Replace in Sublime Text 3, you can either click “Find” in the top-bar, then select “Replace” from the list, or you can press the keyboard shortcut Ctrl+H – the same way it works in, for example, Microsoft Office Word. A Find and Replace toolbar will appear at the bottom of the window, in it, there will be two text boxes, labelled “Find” and “Replace” respectively.

Press Ctrl+H then enter your “Find” and “Replace” terms and click “Replace”.

To the right of the Find and Replace text boxes are four buttons. “Find” will search through the current document for the next instance of the text in the “Find” box. “Find All” will highlight all instances of the text in the “Find” box.

“Replace” will replace the currently highlighted instance of the text in the “Find” box with the text in the “Replace” box; alternatively, it will highlight the next instance of the text in “Find” if one is not currently selected. “Replace All” will replace all instances of the text in the “Find” box with the text in the “Replace” box.

There are seven boxes on the left of the “Find” and “Replace” text boxes that can be used to apply further settings. “Regular expression” allows you to specify the “Find” text with regex, allowing for a very powerful matching system. “Case sensitive” restricts the matching of the “Find” term to only match when the cases match. “Whole word” only matches the text in the “Find” box if complete words are selected.

“Wrap” which is enabled by default, wraps round to the start of the document when it reaches the end. “In selection” allows you to specify a section of text which should be checked for matches. “Preserve case”, keeps the current casing, even if the replacement text is or is not capitalized. “Highlight matches” which is also enabled by default, marks all matches in the document without actually selecting them as a visual aid.

You Might Also Like

  • Fix Sublime Text Does Not Autocomplete
    Fix Sublime Text Does Not Autocomplete
  • Troubleshooting Sublime Text Not Responding
    Troubleshooting Sublime Text Not Responding
  • How to Configure the Tab Width in Sublime Text 3
    How to Configure the Tab Width in Sublime Text 3
  • How to Change the Theme in Sublime Text 3
    How to Change the Theme in Sublime Text 3
  • How to Hide the Minimap in Sublime Text 3
    How to Hide the Minimap in Sublime Text 3
  • How to View Multiple Documents at Once in Sublime Text 3
    How to View Multiple Documents at Once in Sublime Text 3
  • Fix Sublime Text Error Permission Denied
    Fix Sublime Text Error Permission Denied
  • Fix Sublime Text Error Trying to Parse Settings
    Fix Sublime Text Error Trying to Parse Settings
  • How to Enable Syntax Highlighting in Sublime Text 3
    How to Enable Syntax Highlighting in Sublime Text 3

Filed Under: Software

Reader Interactions

Did this help? Let us know!

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Recent Posts

  • Windows 11: How to Add Clocks with Different Time Zones
  • Google Assistant: How to Never Miss a Birthday
  • Windows 11: How to Disable Notifications and Ads
  • How to Use Oculus Quest 2 Air Link
  • How to Create an Avatar in the Oculus Quest 2
  • 5 Free and Fun Math Apps for Kids
  • Windows 11: How to Discover What Graphics Card You’re Using
  • How to Change Display Resolution on Windows 10 and 11

Who’s Behind Technipages?

Baby and Daddy My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

© Copyright 2022 Technipages · All Rights Reserved · Privacy