You will be able to select multiple words at the same time. I can't find what the shortcut is to jump to the next selected word in Webstorm. Follow. Block some lines of text and press Ctrl+Shift+UP and Ctrl+Shift+DOWN to move the lines up and down. Features: Select next occurrence of current selection. Ctrl + Space — Code completion. Selection shortcuts. Wondering if. Connect and share knowledge within a single location that is structured and easy to search. It is easy to select all occurrences of a variable in Sublime Text. Is this a bug, or my settings just off? Srom my default settings: // Highlights other occurrences of the currently selected text "match_selection": true,48. Alt + F3. 2. – Sublime Text — cntrl+option+g will select all occurrences,. Then, open the Find panel by pressing CTRL+F (Windows/Linux) or CMD+F (macOS). Sublime Multiple Cursors All Lines. I am basically struggling with the part where I have to ignore this pattern ;. select content into brackets. e A XYZ. Single Selection. I would love to have all 3 of these but I think Alt+F3 and Ctrl+Shift+L would be the most important functions for me. 9932 Z0. Hitting D a few more time while still holding ⌘ selects the next instance of the selection found. If you want to select words, place the caret at an occurrence of the desired word. [ In above case: All rows except 3: and 4:] PROBLEM is this requires changing the data using substitution. # Selecting all occurrences of the current word If you need to select all occurrences of the current word, without having to highlight it: Use the Ctrl + F2 keyboard shortcut on Windows and Linux. Select all instances of a word. by replacing the current word with another word. 115. Then move all cursors with left/right, select with Shift+left/right. More Tips Ruby Python JavaScript Front-End Tools iOS PHP Android. Select multiple occurrences of a word or a text range. ). The shortcut to find and select the next occurrence of a selected string in Sublime Text is Ctrl+D (Windows/Linux) or Command+D (Mac). Only variable names can be changed that way. This will allow you to select multiple lines and edit them all at once. Works for {}, [] and (): Ctrl + Cmd + M. First, you can use the “Find” feature to locate all instances of a word. This helps you to be sure what are selected when you press Alt+Enter. In Sublime text for instance, if I selected selectTicker all I have to do is click Cmd + d and I will jump to the next instance of that selection. You will still need to press ⌘ + D to highlight the instance first, but you can then choose to ignore it by following up with ⌘ + K. I know that I can select all instances by pressing ctrl + cmd + G. txt. Didn't work. How to increase speed of CTRL+D. Teams. The next time you hit Ctrl + D it should select the next highlighted word. *This works in all versions of Sublime Text. First, select multiple lines (by dragging mouse, shift +arrow, etc. You will be able to select multiple words at the same time. is in your preferences file ( Preferences -> Settings - User) and you should see the expected behavior. It is used by default with Ctrl + Shift + L. Option 2: To multi-select all lines matching a regexp. The feature is find and select all occurrences. Windows: Select all text above your cursor: ctrl+shift+home. Unfold Marker Regions (⌘K ⌘9 (Windows, Linux Ctrl+K Ctrl+9)) unfolds all marker regions. If you need to search and replace in more than one file, press Ctrl Shift 0R. Clicking the "Find All" button will select each of these numbers separately. Then, hold down the Alt key (on Windows) or the Option key (on macOS) and click at the end of the column. Select all text below your cursor: ctrl+shift+end. There are instances where searches and/or replacements can be performed within a specific area within Sublime. Open. I use registers a lot. ⌘K,⌘D - skips the current instance and goes on to select the next one (CtrlK,CtrlD); ⌘U - "soft undo", moves back to the previous. 64. Better yet, if you know you want to select all instances within the current file, you can highlight your interested text and press ctrl+cmd+g. Ctrl ⌘ G - selects all occurrences of the current word ( Alt F3 on Windows/Linux) ⌘ D - selects the next instance of the current word if it is already selected, otherwise selects the current word ( Ctrl D) ⌘ U - "soft undo", moves back to the previous selection ( Ctrl U. I selected “spider. The interface is intuitive, with clear fields labeled 'Find What' and 'Replace With'. Enter the replacement character in the Replace with text box. To select all occurrences of a word or phrase, simply press Ctrl+Shift+L (Windows/Linux) or. Ctrl + Shift + Enter. In other words, Ctrl + D with nothing highlighted does whole-word search. For some reason the selection ends at the last function, not the first one and I can't figure out how to fix that. The next occurrence will be selected after this. Select Line (Repeat to select next lines) Command + Ctrl + G. CudaText: Use command "Selection / Add next occurrence of selected word". Move line Down. In the Find/Replace panel, enter the text you want to find in the “Find” field. Improve this answer. Enjoy!. Ctrl + D - select word (repeat selection of others occurrences in context for multiple editing) Ctrl + F2 - select all occurrences of current word; Ctrl + A - select a whole file; Ctrl + L - select a whole line; Shift + Alt - select column/box while drag a mouse; Ctrl + Shift + ←, → - select previous/next word; IndentationSelect all occurrences: Ctrl+Cmd+G / Shift+Ctrl+Alt+J. config/sublime-text-3 (or %APPDATASublime Text 3 on Windows, or ~/Library/Application Support/Sublime Text 3 on Mac). You can click on the gutter to select a line, or click and drag to select multiple lines. Share. Press the key for Find->Quick Add Next* to select the next instance of 0, and repeat until you've selected all the instances of 0 that you want to change. Other option: 1. txt and no_dup_sorted. Navigate to the first character (Right arrow) and select all IDs. Now you want to change every instance of a particular word. In this guide we won't explain how to use regular expressions. Add/remove a selection: Alt + Shift + Mouse Click. I can not find a way to select all instances of a word type, similarly how different words are colored according to the format rules from the file type you have. Another way to do this is to use the regex feature. For example 'c' may occur in many words, not being variables. Find all occurences of the selected word. A protip by wkjagt about sublime text 2 and st2. Continuing to press ⌘ + G will cycle through all instances of the word you pressed ⌘ + E on. How to select all occurrences of a word? ST3: In the Find dialog, enter a word, check "whole words", press "Find All". Q&A for work. similar to this Find all occurences of the selected word. Aims to replicate the multi-editing features of Sublime Text/Visual Studio Code for faster coding. See valibHere is what I do in ST3 in HTML to strip all comments, especially nasty comments embedded within <p> body text, for example. Is there a way to do this with only regex and NO substitution. Sublime Text is a powerful text editor that provides users with a number of features to make their text editing experience more efficient and enjoyable. The dialog also opens when you click in the Show Usages popup which lists all the occurrences of the symbol at caret. If I understand you correctly, you want to select all occurrences of a certain word except for the first occurrence? I don't know of any way to do this directly but the PowerCursors package may be helpful. Next, type the string of text you wish to search for in the Find panel, and press Enter. Select All Instances of the Same Word ⌃ + ⌘ + G (Alt + F3 on. This is what I see in Sublime Text. Sublime text-in quick find next, how do you only find 'whole words' Hot Network Questions6. Ctrl + Shift + Arrow Down. Select Next Match of a Selection: ⌘ + D. The highlighting of source code and prose in Sublime Text is controlled by a color scheme. Control + F type your term/word in the search term box type your term/word in the replace term box Click Replace All on the right - Alt + A. How to select all instances in Sublime Text 2? However, here are some useful key combos for selecting words in Sublime Text 2: Ctrl ⌘ G – selects all occurrences of the current word ( Alt F3 on Windows/Linux) ⌘ D – selects the next instance of the current word ( Ctrl D) ⌘ K, ⌘ D – skips the current instance and goes on to select the next one ( Ctrl K, Ctrl D) Sublime Text Shortcuts Windows. 3. Single Selection🔗. Through trial and error, here's what I found so far: Opt+Up/Down: Move line up/down. Sublime/Atom are alt + F3. Add next occurrence of selected text to selection: Ctrl + D Add all occurrences of the selected text to the selection: Alt + F3 Rotate between occurrences of selected text (single. Let’s see how we can work with them! Multiple Selection. Provides the most common multi-editing features. Do one of the following: Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or. Multi-word (and multi-line) cursors/selection in VS Code Multi-word: Windows / OS X: Ctrl+Shift+L / ⌘+Shift+L selects all instances of the current highlighted word; Ctrl+D / ⌘+D selects the next instance. In order to ONLY rename the occurrences. In general, Sublime can find and replace single instances via Replace and all instances via Replace All. Select one instance of your keyword; Alt + F3 to select all occurrences; Ctrl + L to to select all lines which contain your keyword; menu item Selection > Invert Selection to select all lines which do not. Sublime Text is a powerful text editor that provides numerous features for finding and replacing text. All global configuration for Sublime (including installed packages) is stored in ~/. This Sublime Text plugin allows temporarily and persistently marking all occurrences of selected words in a color; multiple marked selections can be added simultaneously, each marking the selections with different. Thanks – StuartM Feb 20 ’13 at 16:13. There is a Replace button in the bottom right. To go from multiple selections to a single selection, press Esc. To search for a specific string of text in all files within a given folder, first open the folder in Sublime Text. UPDATE After checking some other ST3 builds on a different machine, I was able to replicate the issue, however it doesn't seem to depend on whether $ is included in the "word_separators" preference. Ctrl+D to select the next entry of a string in the file. 9171 A-39609. (the shortcut can be confirmed by moving your mouse onto the Find All button in the find panel. ; Use the Cmd + F2 keyboard shortcut on macOS. Esc. 9. Select to mark ^K ^ Set mark ^K^J. doc. The only difference between this panel and the regular search panel lies in the behavior of the Enter key. select column for multiple editing. How to reproduce it: Create a file with multiple matching instances and perform the Select All Occurrences command. Otherwise, select the desired range with the mouse or with keyboard shortcuts. As far as I can tell an equivalent feature does not exist in VS Code. Ctrl+D to select the next entry of a string in the file. Here we’ve selected a whole line, and now we can select subsequent whole lines, step. To replace text in Sublime Text, first select the text you want to replace. First, select multiple lines (by dragging mouse, shift +arrow, etc. B. Sublime Text is a powerful text editor designed for programmers and available on Windows, macOS, and Linux. Windows: Select all text above your cursor: ctrl+shift+home. Press END key. and I have the first occurrence of the word 'word' selected. set shortcuts you want as like sublime. Anyone familiar with Sublime Text's multiple cursor feature will recognize the pattern of doing the following: press a hotkey multiple times to select multiple instances of the word under the cursor and automatically create a new cursor for each of those instances; then edit each instance simultaneously, e. Also, as you are typing the name of the file, ST3 opens the most relevant one by itself. Unfold all ^⇧] Unfold code ^⇧[Fold code. Command Shift L is used to select a line in a multiline block. We will reference the Linux folder for the rest of this tutorial, but replace with your own path if using a different OS. Single Selection🔗. If you double click to select word, Ctrl + D will select the exact string not just the highlighted ones. Hit Ctrl + Shift + F, the prompt will open in the bottom of the window, Hit Find, then manually double click on the text (that you want to replace) shown. If you want to search for a keyword, say print from the given code, you can use Ctrl+DThe goal of Sublime Text‘s CtrlD command is to make it faster to code. To highlight occurrences of a selected fragment, select this fragment. Select all occurrences. In Visual Studio 2019, you can select the right place by pressing the Shift ALT and SPACE buttons. Key Bindings List. To replace a term, press Ctrl+H to open the Replace panel. Cmd ⌘ + D (Mac) Ctrl ⌃ + D (Windows and Linux) Put your cursor on a word, press the keyboard shortcode, and the word will instantly be selected. Share. ). If this comes true, icons will be used to mark all occurrences of selected words on the gutter bar. Select Anaconda -> Rename Object under cursor. In ST3, there is a similar function; if I double-click on a word in ST3, the other words are highlighted with a small border:First select any given word or words you’d like to edit. “Find” will search through the current document for the next instance of the text in the “Find” box. Share. edited Jun 20, 2020 at 9:12. Move line/selection up: Ctrl + ⇧ + ↓: Move line/selection down: Ctrl + L: Select line - Repeat to select next lines: Ctrl + D: Select word - Repeat select others occurrences: Ctrl + M: Jump to closing parentheses Repeat to jump to opening parentheses: Ctrl + ⇧ + M: Select all contents of the current parentheses: Ctrl + KK: Delete from. Share. . Finally, using the Find command, you can find all occurrences of a word, which means you can’t have one cursor. The feature is find and select all occurrences. Add comma(,) which will reflect to all line. Ctrl + F2 to select all occurrences of current word. upon selecting a word, highlight all occurrences of the same word in the current file. Use the Left Arrow and Right Arrow keys to move the synced cursors within each selection. smartSelect. Tap: Control + G - Every tap combination select the new same value. In Sublime Text, you can edit all occurrences of a word by highlighting the words with alt+F3, and then typing whatever you want to change the word to. Ctrl + D performs the find_under_expand command in sublime. With multiple lines selected - enter multi-line editing mode. Skip to content. Then you can Ctrl+C (⌘+C) or Ctrl+Shift+K (⌃+⇧+K) to copy/delete the lines. Move Caret to Text Start with Selection. There is a difference in CudaText implementation: CudaText command first checks, is first selection 'whole word' or not. You can view the currently active keyboard shortcuts in VS Code in the Command Palette ( View -> Command Palette) or in the Keyboard Shortcuts editor ( File. g. Perform the menu option. selectAllMatches ( ALT + ENTER) Now you have multiple cursors active. 36. Do one of the following: Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or. Sublime Text Select Multiple Lines. Use Alt +Left Click on the undesired cursor. com Sublime Text works with all the standard Windows shortcuts: In addition to the arrow keys, home, end, page up, etc, there is: Ctrl+Left / Ctrl+Right: Move by words. The first one would be via multiline insert mode. If you now start typing to replace your original highlighted text, you will replace all of the other occurrences at the same time. selectHighlights. Cmd-E. super+l: select line (repeat select next lines) super+d: select word (repeat select others occurrences in context for multiple editing) ctrl+shift+m: select content into brackets; super+shift+enter: insert line before; super+enter: inter line after; ctrl+shift+k: delete line; super+k-k: delete from cursor to end of lineMulti selection. Sublime Forum. This can be done by pressing Ctrl+F (Windows/Linux) or Cmd+F (Mac) to open the Find panel, then typing in the word or. TL;DR the Ctrl + D as in Sublime Text or VS Code is Ctrl + Alt + Right in Overleaf. A cursor will appear after each match, allowing you to. Make sure Regular Expression matching is enabled (Alt+R to toggle). Block some lines of text and press CTRL+ [ and CTRL+] to alter the indentation. Again, if you go too far, use Undo Selection (Ctrl+U, or Command+U on OS X) to step backwards. If you need to preserve the case, click located in the replace field. And I'm trying to get better at vim as a novice so here. KEYBOARD SHORTCUTS. Select all occurrences of the current word: Alt + F3: Option + F3: With multiple lines selected: Ctrl + Shift + L: Command + Shift + L:If you have used Sublime Text, chances are you have used Replace toolbar, which find and replace the desired string or all occurrences of the string in the current file, well, that’s just what substitute does. How do I make sublime text faster? Below you can find some of the best ways to quickly select text. note. To select multiple lines in Sublime Text, use the following keyboard shortcut: Ctrl + Shift + L. Command + Shift + Down Arrow key. How to select all cursors in Sublime Text? Ctrl+A – select all. Turn on the Whole word setting in the Find bar; note that only the whole word instances are outlined. Similarly, after finding something with Ctrl + F, Alt + Enter will select all occurrences of the search query, which can be multi-edited; Ctrl + X without anything selected cuts the current line, then move to a different line and Ctrl + V pastes it below the current line; Setting Sublime as the default Terminal editorExits the whole application with all open windows. Select All Matches is a feature in Sublime Text that allows you to highlight every instance of a particular string of text within your document. Select the string of interest. Enter the replacement text in the “Replace:” field. One of these features. Great for variable renaming etc. Provides the most common multi-editing features. To take full advantage of the search and replace facilities in Sublime Text, you should at least learn the basics of regular expressions. Hit Ctrl + Shift + F, the prompt will open in the bottom of the window. Spell Check. Then move all cursors with left/right, select with Shift+left/right. Sort by Date Votes. If you select text, Sublime infers that you want to select all variations of the text. The feature is find and select all occurrences. Apparently Sublime Text 3 doesn't have such functionality. 1. When it comes to Macs, the letter G is pronounced *. VS Code editor will allow you to select all occurrences of a word. If this method selects an instance that you want to skip, press the key for Find. Type (for Windows) or (for mac) in the Find textbox at the bottom of the Editor window. I folded in CHANGELOG. To disable the prompt, in the Settings dialog ( Ctrl Alt 0S ), go to Editor | General | Smart Keys, and in the PHP area, clear the Show additional options when searching for method usages checkbox. 9. I don't know which are most similar to Sublime Text's though. Jetbrains give you an option to change settings, Settings -> Keymap -> Editor Actions. This article will highlight tips, shortcuts, and tricks of getting the most from Sublime Text 3. Sublime text. 15. I think I need to replace all occurrences of $ with private $ in between class and the first. Press Alt-F3 (Windows or Linux) or Command+Ctrl+G (Mac OS X) to highlight every instance of the word in the document. CTRL + SHIFT + K will delete a line in Sublime Text 3 on Linux (tested on Ubuntu 14. It looks something like this: Z0. You can view the currently active keyboard shortcuts in VS Code in the Command Palette ( View -> Command Palette) or in the Keyboard Shortcuts editor ( File. select line (repeat select next lines) ⌘D: select word (repeat select others occurrences in context for multiple editing) ⌃⇧M: select content into brackets : ⌘⇧↩: insert line before : ⌘↩: inter line after ⌃⇧K: delete line : ⌘KK: delete from cursor to end of line : ⌘K⌫ delete from cursor to start of line : ⌘⇧D. Using the Invert Selection feature, you don't need to remove any text and then put it back. Do one of the following: Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or. This is even more comfortable than using find and replace. Find all occurences of the selected word. Hit Ctrl+F to open the Find drawer. Ctrl + F2 to select all occurrences of current word. Select Preferences > Key Bindings -- Default. In sublime text, selecting some text and then pressing Ctrl+d will add next instance of the same text to the selection if possible. The keyboard shortcut for this feature in Sublime Text is alt+f3 on Windows / Linux and. Bookmarks ⌥F2. The screenshot given below explains this −. Multiple Selection. This is what I used to replace all ' into ". Note: I am not trying to select all instances of a single word. You can select all occurrences of the current word or selection with alt+f3. Sublime text: edit all occurrences of variable without highlightingHelpful? Please support me on Patreon: thanks &. If you know that you want to select and modify all occurrences of the current word under the cursor, press * to select it and in command-mode execute: %s//replacement. ESC - Goes from using multiple cursors back to one cursor. This will select ALL instances of that word in the entire document -- and since Sublime Text supports multiple text carets, all you have to do is type and ALL instances will be edited simultaneously. Enter the text you want to find in the “Find:” field. Find all. Now you want to change every instance of a particular word. That's a feature called "multiple selection". Select all occurrences at once with Ctrl+Cmd+G. Click Replace All. Start diff with DiffMerge tool with sorted_orig. You could use Find & Replace, or you can follow these steps: Place your cursor somewhere in or next to the word you wish to select. Ideas and Feature Requests. and. Hit the delete key, and then click off anywhere to get rid of the multiple cursors. The list below tries to summarize the key bindings configured by Sublime. 1. Select the text to check. Select All Matches of a Selection: CTRL + ⌘ + G. to (Enum): Values: bol, hardbol, eol, hardeol, bof, eof, brackets, line, tag, scope, indentation. Use a cursor movement to lose the selections (multiple cursors remain). If you want to select words, place the caret at an occurrence of the desired word. If you instead put the first on the t and use the first key press to tell it. If you want to step through each instance, you can keep using the the single instance Find which will step through find instances (there. set_translate_tabs (Bool) find_all_under Finds all occurrences of the current selection or the current word. * [a-zA-Z]+. Above answers are the correct ways, but if you want to get rid of the rows with even a single string then do, Find -> Replace -> put ^. questionmark October 14, 2019, 9:44am #3. Mac: ⌃+⌘+G. Xcode (the Objective-C IDE) has a great feature where you can simultaneously edit all occurrences of a string at once within a given scope. 2. This is particularly useful when you need to edit or review multiple occurrences of a variable, function name, or any other specific text. Hit Ctrl-D; note that suddenly all of the non-whole word instances have become outlined as well. always immediately jumps to the first reference it thinks is correct whether or not there are multiple occurrences. CTRL + H to open Replace dialog. quit and restart sublime. and the one after that. No. EDIT 1: I am using SUBLIME text editor. Execute editor. for selection, Alt + J. Again, if you go too far, use Undo Selection (Ctrl+U, or Command+U on OS X) to step backwards. Other editors does the same and also allows to move cursor to the next / previous occurrence. Yaroslav BedrovYou would have to be more specific on what you are asking as I can’t really tell exactly what you are asking. Written by Willem. Leave the Replace With field blank to remove the digits. This basically searched for the next occurrence of the already selected text and selected it, so when I. 215. Type in the text you want to find (such as element ), then, in the group of buttons to the left of the text area, click the second button from the right - In Selection (highlighted in red): Finally, either hit Alt Enter or click Find All to select all the. If you want to select words, place the caret at an occurrence of the desired word. textile. package control install SelectUntil. As far as I can tell an equivalent feature does not exist in VS Code. This can be extremely helpful when trying to locate a specific piece of code within a large document. Do one of the following: Successively press Alt+J to find and select the next occurrence of case-sensitively matching word or. You can reassign hotkey from the command A to the command B, so hotkey will give the behaviour of Sublime Text. Aims to replicate the Ctrl+D command of Sublime Text for faster coding. Mac: ⌘+K, ⌘+D. Seen below is a screen shot of the last version of Sublime Text 3 with no settings or packages and some text selected. To select all occurrences of a word, use the “Find” command (Ctrl+F on Windows/Linux, Cmd+F on macOS) and then click the “Find All” button. * In the find section and keep replace with blank. Image taken by. You have to love this shortcut! It can select all matching occurrences of a word to edit or. Command + Shift + Up Arrow key. Above answers are the correct ways, but if you want to get rid of the rows with even a single string then do, Find -> Replace -> put ^. If I press ctrl+d, it selects the last four letters of the word 'longword. Apparently Sublime Text 3 doesn't have such functionality. Oct 12, 2019Here are some useful key combos for selecting words in Sublime Text. Windows & Linux. shrink which has the default shortcut. But when I hit ctrl+d it also select “was” occurring between other words. 9168 A-39611. For instance, to replace all occurances of "cat" with "dog" in the column "myfield", you would do: UPDATE tablename SET myfield = replace (myfield,"cat", "dog")Find All Instances Matching Your Selection One by one: Make a selection and find, one by one, other instances by hitting CMD-D. If you go too far, press Ctrl + U to deselect the current instance. Put your cursor to the second "a" in the first line, press Ctrl-V, select all lines, then press I (capital i), and put in a doublequote. Unfortunately it is not as straight forward as it is in Sublime. The screenshot given below explains this −Replace the search string in a file. Share. Start typing to replace the selected text. Something like, while on the word, "ayiw to yank the word to register a, I mainly increment the number by a random number then do "byiw. If this comes true, icons will be used to mark all occurrences of selected words on the gutter bar. It is also possible to add all occurrences of the current word to the selection using Alt-F3. 1. Presently, with current versions of N++, to get the SAME result, you need to perform the five steps below :. Next bookmark ^F2. Working in Sublime Text 3, I’d like to re-name some variables in my code. But now I want to select everything between the SUBROUTINE keywords. Press ALT+F3 (command "find_all_under") to select all occurrences 3. I have a simple list of 4 lines. Now you can edit multiple lines, move cursors etc. For example, if you have text “-test” in multiple places in the document and if you want to replace the text with “-prod” at once for all the selected instances, then here are simple steps: Open the document in Sublime Text; Select any string in the document, for my example I am selecting “-test” Now press: MAC: Command + Control + GSelect all the text, and remove duplicate lines via Sublime 3 Edit -> Permute Lines -> Unique command. Once you’ve done that, just open up the command palette (Cmd + Shift + P or Ctrl + Shift + P) and type ‘install’, followed by enter. Interactively replace or skip occurrences of a string in the file tree. Yeah - select the variable name - then use Alt-Shift-R, then rename. Visual Studio Code is Ctrl + Shift + L and begin typing. Find All. Having selected an area, it would be great to be able to select all instances of a word - only within that selection - when doing cmd + left click on it. Hit the replace all button this will delete all the rows with even a single string in it. Sublime Text Select All Occurrences. Share. On a more global way, If you wish to change things like methods signatures : right click -> refactor. Add the entire thing to your preferences (Preferences -> Settings-User on Windows/Linux or Sublime Text -> Preferences -> Settings-User on OS X), remove the characters you want to be included as part of words (# and . In Sublime Text, that will show an outline around every search result—click Find all to select each of those results if you'd like to copy them first. #.