I'm stuck with a bit of an Xcode puzzle: how can I find and replace either in a selection I've made, or at least just in a single file?
According to the following topic there's a way to hold down the option key and Replace All should change to Replace in Selection:
How can I find and replace inside a selection in Xcode?
This either doesn't happen in Xcode 4.5, or I don't know how to do it. Right now I can bring up the find/replace option in the search navigator on the left, then hit return to search, or hit preview to bring up which files are to be changed.
As a workaround, I can search in a selected group (by right-clicking on a group in the file navigator), but being able to replace in a selection I've made, and in a single file would be extremely helpful.
Thanks in advance ;-)
In Xcode 4.6 (I don't have 4.5 on my system any more to check it), if you are in the editor window and press Cmd-F to bring up the Find view at the top of the editor (as opposed to the global search inspector you are referring to), and use the Replace option in it, holding down the Option key changes "Replace All" to "In Selection". This seems reasonable since the global search inspector is across multiple files while the option to choose "In Selection" really only makes sense when you are referring to a single file.
Related
There's an option in Jupyter Notebooks where you can select some cells, and then hit F, which opens up a Find & Replace feature.
This shortcut doesn't work in Jupyter Lab. It's not in the Commands list and it's not in the Edit Menu (there is only Find -- and Find Next and Find Previous). Nor can I find a global (not specific to a cell selection) Find & Replace feature.
Does this feature exist? I've found old mentions of it on the internet -- has it been removed? I'm using Jupyter Lab version 1.2.3.
The Find & Replace feature was not removed, but the way it is named in the menu (simply Find...) and the UI which requires the user to click on a small arrow to access it may be confusing. Please see the GIF below which demonstrates how to use the search & replace feature:
If you need a slightly more powerful refactoring tool (i.e. distinguishing the variable scopes) you may want to check out my jupyterlab-lsp project which now includes support for the rename action (see here for a demonstration GIF, but please install a newer version, not the tag linked).
I am not sure if the original question was answered correctly. If I were to find and replace in only a selected cell, the top rated solution doesn't seem to work (in JupyterLab). The desired result is obtained by clicking on the ... button in the F&R menu. Check the attached snippet.
It can be easily done using keyboard in Jupyter as well.
Step 1: If you are inside any code block/cell, press Esc.
Step 2: Press F
ive decided to give the text editor [brackets] a trial. Im just wondering is there a way to find and replace in all open documents using brackets ?
I can see a find and a replace option, but ive got to hunt down alot of content across multiple pages.
I cant seem to find a short cut or an option from any of the drop down menus to replace all matches across multiple files.
any help greatly appreciated
Update: To use this feature now that it's available, just choose Find > Replace in Files. You can also right-click any folder in the left-hand pane and choose Replace In... to only replace within that subtree of your project.
Original answer:
This feature (replacing across multiple files at once) is not available yet, but it's currently under development and will probably ship in the next release of Brackets, Sprint 40. You can track its progress by following the Replace Across Multiple Files card on Trello. (Note: once it ships that link will break, because the card will be moved onto the Brackets History board).
This question involves bending Microsoft Word 2013 to one's will.
I have been asked to help fix a problem with Word 2013's autocorrect.
We are working on a spell checker for my native language (Afrikaans), and many Afrikaans words contain a diacritical/umlaut (ë, ö, Ü, etc).
The spell checker consists of a .dic file which is basically just a text file that contains about 508 000 words, and an autocorrect list (.acl) file that is used to automatically replace text as you type.
The spell checker works very well for the most part. It replaces the text as you type, which is the desired effect. The problem is that autocorrect doesn't work with all words.
For example, if I want to type the Afrikaans word 'pêrels' (which means 'pearls'), I should only have to type 'perels' (without the ^ character on the 'e'), and autocorrect should automatically change it to the correct form.
Same with 'reën' (rain). If I type 'reen' (without the umlaut), it is supposed to automatically correct it.
However, in both of the above cases, the words remain unchanged. A red line appears under the words, and when you right-click, you can select the correct word from the pop-up autocorrect menu as shown in the image below.
As you can see, the correct form of the word is the first one in the context menu. I need autocorrect to automatically change the wrong word into the first word that appears in said menu. It should completely ignore the other menu items, and just go with the first word.
My initial instinct was to manually add the words to the *.acl file using a text editor, but the file is encrypted and not readable (I used Notepad++).
I then tried adding them inside Word's autocorrect options menu. However, Word 2013 has a maximum autocorrect memory of 64KB, and the size of the file is already at that maximum. Whenever I add more words, it bombs out and basically wipes the file contents. This doesn't seem like the most efficient strategy anyway, since I would need to manually enter hundreds, if not thousands of autocorrect cases. Ain't nobody got time for that!
What makes this even more complicated (ironically), is that there is no real "program". In other words, this isn't a C# program with source code that I can manipulate. I have the two files mentioned above, and Word's built-in options (which I have already explored). That's it. Nothing else.
I'm stuck. Does anyone have any ideas?
Is it perhaps possible for me to hack Word to increase the autocorrect memory to, let's say, 128 KB? Google hasn't turned up anything of use.
Or, is there a way to set Word to not give the autocorrect context menu, and instead default to the first matching word in the dictionary, as mentioned above?
I can probably write a batch script, C# program, or edit the registry if need be. I just need to know where to start.
Thanks for any help!
In case you are still looking for a solution, you might consider using AutoHotkey (http://www.autohotkey.com). It is a very powerful free open-source utility, and can handle substitutions similar to AutoCorrect. Whenever the built-in program features of Word and others fail to handle my needs, I use AutoHotkey. It has the added benefit of not being tied to any specific program (e.g., Word), so the substitutions can occur anywhere needed. I hope it helps you. I have used and depended on AutoHotkey for years of new Windows versions, new Office versions, and highly recommend having a look. You might even get new ideas about time-saving automation with AutoHotkey. Good luck!
I'm a new user to Eclipse (Juno) with SUSE 11 Linux,I am looking for specifying a user defined dictionary so that I can stop all the "Trolltech" and "Qt" references in my Qt projects showing up as spelling errors, without turning off all spell checking.
I found following instructions online, I select Window | Preferences | Editors | Text Editors | Spelling and get a panel including a field in which to specify a user defined dictionary. I gather all this needs to be, is a text file. I have tried two variations for this:
As root,
created an /opt/eclipse/dictionary/dictionary.txt file, file
permissions set 777 but higher level directories 755s
created a /dictionary/dictionary.txt file, both directory and file permissions
set 777.
I have at this point, in each case,
specified the full (absolute) path to one of these files in the
"User defined dictionary" field,
clicked either Apply | OK to set the path, or just OK, exiting the dialog
seen no change in the Eclipse editor, which still shows these terms as misspellings
at the level of the project, attempted Refresh of the project from
the right-mouse popup menu
tried re-indexing at the level of the project using Index | Rebuild from the right-mouse popup menu
tried refreshing files at the level of the project using Index |
Freshen All Files from the right-mouse popup menu (no reason
to believe that either of steps 5 or 6 will help, but I'm basically
trying everything that seems available to be tried)
closed and re-opened the project
closed and re-opened the IDE.
When I restart the IDE and go back into Window | Preferences, etc., the panel shows the dictionary text file I've specified AS specified, but there seems to be no functional recognition of this by the IDE.
Adding to the joy, when I hover above either of the "errors" I'd like to stop seeing, I don't get the quick fix option of adding the error word to the dictionary, because last week I ticked the option that said "don't prompt to add to a dictionary, if no dictionary exists". Doesn't appear that any dictionary is being recognized as existing.
Can anyone tell me what I'm missing, here?
I'm just adding this here because Dorothy didn't answer his own question even after 3 years. This will stop the question showing up in the unanswered category and provide space for newer questions.
Dorothy Wight:
OK, I figured it out. The thing none of the instructions I'd read mentioned, is that in the Windows | Preferences etc., panel, you have to change from "Default spelling engine" to "C/C++ spelling engine". Then you re-specify the dictionary and it works.
In Xcode 3, it was relatively easy to sort the source tree by name (see answer here for more details). However, I can't figure out how to sort the files and groups in Xcode 4 without manually dragging them around.
As of Xcode 4.3.1 - Select a Folder/Group in the project navigator area. Then go to Edit->Sort and you can choose "by name" or "by type."
There is no sort for the project navigator beyond drag and drop. Probably because it would be too easy to obliterate your careful organization.
To accomplish something similar without touching your proj file, you may want to become best friends with CMD-SHIFT-O (Open Quickly ... was CMD-SHIFT-D in Xcode3). Start typing the filename and you'll see a list of matching files appear and you just pick from the list.