VSCode auto-open replace field in Find & Replace - visual-studio-code

When the Find & Replace box is opened, the default view is to hide the replace field.
So whenever I want to replace something, I have to click the left arrow to "Toggle Replace Mode". Is there a way to set Replace Mode to be active by default? There's really no negative to having it open, as pressing enter goes to the next match in both modes, and having it open by default allows one to tab into it without having to use the mouse at all.

Try CTRL-H, it will open the find widget with the replace field open. Or it will open the replace field of the find widget if it isn't already open without the replace field showing.

Related

VSCode how to automatically insert Intellisense suggestions without having to press Enter?

Default VS Code Intellisense behaviour
User is presented with a menu of suggestions
User then has to press the Up or Down arrow keys to navigate through the menu
Finally user has to confirm with Enter to insert the suggestion and close the dialog
What I would like instead
Don't need to press Enter
Suggestions are automatically inserted (and cycled through) by pressing Up/Down
Pressing any other keys will close the dialog and resume typing
To be clear, I want to replicate the default behaviour of YouCompleteMe:
When you type, a completion menu pops up. If you like the completions, you use the <Tab> key (by default, can be changed to <Enter> or <Down> arrow or whatever) to select a completion string you want. The very act of "tabbing through" the list to select the item you want inserts the candidate string. When you tab to a different candidate, the editor code is replaced with the new candidate. There is no accept key because by the point where you have the candidate you want selected in the menu the candidate has already been inserted in the editor. There is nothing to "accept". You just keep typing, the candidate has already been inserted.
Is such behaviour possible with Visual Studio Code, either by default or through a plugin?
The editor.tabCompletion option is the closest thing currently available:
By default, tab completion is disabled. Use the editor.tabCompletion setting to enable it. These values exist:
off - (default) Tab completion is disabled.
on - Tab completion is enabled for all suggestions and repeated invocations insert the next best suggestion.
onlySnippets - Tab completion only inserts static snippets which prefix match the current line prefix.
(Emphasis mine)
... except that the first Tab press hides the suggestion window.
I did some digging about editor.tabCompletion, and I found that closing the suggestion window is part of the tab completion's option original design, and that while other users have asked about an option not to close the suggestion window or specifically YouCompleteMe-style behaviour, that this is currently not supported.
"editor.acceptSuggestionOnEnter": "off",
To disable Enter to accept suggestion.

How to start the search process in Visual Studio Code

I can see the search form panel in left side, but, how can I start the search process? there is a field to put the text that I am looking for, but I don't find a button or icon to press and start the search process, I don't want to try pressing the enter button because I don't know if pressing enter will search or it will replace (since there is also a "replace" field)
Regards
Enter will start the search, don't worry. If I remember correctly
Ctrl+alt+enter does the replacement for all and you also have to
confirm before the replacement – FreshD
thanks, I also noticed a small triangle to hide the replace field

Eclipse - How to disable "direction" on find/replace dialog

In eclipse, when using the CTRL+F dialog, it is a bit annoying to search for some word in a file and having to select the direction you want to search (forward or backward) or having to put the cursor focus at the top of the file to search forward.
Is it possible to disable this direction option and search for words just like Chrome does? (when searching in Chrome, if you reach the last coincidence and press next again, it will go back to the first one immediately).
In the Find/Replace dialog in the section Options there is the checkbox Wrap search for that.
The Wrap search option of the Find/Replace dialog is also applied to the Find Next (Ctrl+K) command.
Alternatively, you can use Incremental Find (Ctrl+J) which is a Find without a dialog: in the Incremental Find mode the entered search string is displayed in the status bar and by hitting Ctrl+J again you go to the next match. On the last match you have to hit Ctrl+J twice to go to the first match.

MS Access Form - Enter key not moving to new line

I have an odd issue with a form I have in MS Access. For some reason, when I hit the "enter" key within a text box, the cursor moves to a different text box. What i am looking to happen is for the cursor to simply move to another line within the same text box.
Anyone have any ideas how to correct this?
You can use Ctrl+Enter to enter a new line into any text box.
For a specific text box, you can make the Enter insert a new line instead of moving to another control on the form by changing the text box's Enter Key Behavior property.
That's what I think you're actually looking for, but you would need to set that property for every text box where you want it to happen ... which may be fine for your needs. I mentioned Ctrl+Enter first only because that method works for any text box without changing the default property setting.
Under file, options, client settings, very first one option move after enter and change from next field to next record.

Find and Replace text in Eclipse

I am using eclipse IDE.I need to modify thousands of hbm.xml file by replacing the text generate="always" to generate="never". Please tell me the easiest way.
Click on the "Search" button, click on the "File Search" tab, set the filename to hbm.xml, set the text to generate="always" and click on the "Replace" button at the bottom. When it's search for all matches, it'll offer you another dialog to say what to replace it with.
The eclipse search dialogs offer a global find and replace in text files.