Visual Studio ctrl-H sometimes doesn't automatically select 'selection' - c++

When I select text then hit Ctrl+H, the popup dialog doesn't always show "Selection". Sometimes it gets 'stuck' with "Current Document".
I'm seen this bug for every VS version of Professional and now Community over almost 10 years now...
I select some text, in Visual-C++, then click Ctrl+H.
The upper-right replace dialog pops up with "Selection". This is expected.
Smack Esc to hide it.
Now, place cursor at empty line.
Click Ctrl+H.
Dialog again pops up with "Current Document". This is expected.
Esc
Select the same text as in step 1.
Dialog again pops up, BUT with "Current Document" instead of "Selection."
and I have to manually use dialog's pull-down to set for "Selection."
Is this a bug or am I missing something?
I want it to always set "Selection" if I select text then hit Ctrl+H.

You should select two or more lines to always get the Selection option by default on Find and Replace window, this is necessary if you previously opened the Find and Replace window with the Current Document option.

Related

How to automatically fill "go to everything" [ctrl + t] with current text selection

When I have text selected in a VS 2017 text edit window and then hit ctrl+t to do ReSharper's 2017 Ultimate's "go to everything", the selected text is not automatically placed into the "go to everything" search field.
As automatically pasting selected text into search dialogs is pretty standard functionality, I'm hoping there is a way to configure ReSharper to do this but have not been able to find one.
Does anyone know? Thanks in advance!
Try ticking the checkbox Remember last search on ReSharper | Options | Environment | Search & Navigation page. According to the WebHelp page https://www.jetbrains.com/help/resharper/Reference__Options__Environment__Search_and_Navigation.html, that should help
ReSharper can remember the last input that you used to find something
with Search Everywhere/Go to Type, Go To File, and Go to Text actions.
When this option is selected, ReSharper will also use your current
selection in the editor as the initial search query. For example, you
can select a file name in a string and then press Ctrl+Shift+T to
search for files in your solution that match this name.

How to turn off showing whitespace characters in dev-c++?

I pressed something, maybe in the font or the editor, and my dev-c++ started showing paragraph symbol and space symbols.
like these
¶¶
How can I remove that?
In the editor go into "Settings -> Editor Settings", and check "Show hidden smbols" checkBox (bottom left), than push OK button.
I know this because i was searching today how to enable it XD

Visual Studio go to bookmark only inside current file

Is it possible to go to the next/prev bookmark only inside the current file? I'm using VS 2010 and I find it extremly annoying that it jumps always across all files when I want to navigate inside the current file only.
Yes. Go to "customize" (right click on the toolbox area, choose customize) ->commands->keyboard, choose edit.NextBookmarkInDocument and associate it with a shortcut.
In addition, you can add it as a button in the text editor toolbar. Go to to text editor toolbar, press the little mark on the bottom-right,and choose the appropriate button to add.
Set bookmarks to stay in one file in Visual Studio 2019
In the Search box at the very top menu, put in ‘customize’ and hit Enter’.
A complex box comes up, but I simply clicked on a button at the bottom labelled ‘Keyboard’, which is where keyboard shortcuts can be set up.
That brings up another huge box. In the left hand pane is Environment and under that is Keyboard. I guess that the way I went in is why this was expanded and already selected, so there must be other ways to get to the same place.
In a right hand pane is now a huge list of commands that can have shortcuts attached!
The ones to scroll to (enlarge the box or the scroll bar is a joke. A slight move scrolls dozens of lines!) are Edit.NextBookmarkInDocument and Edit.PreviousBookmarkInDocument. (similar commands without ‘inDocument on the end are what f2/ shift f2 do by default and jumps between files rather than staying in the same document.)
When you select a command you can then just click on the field labelled ‘Press shortcut keys’ and then press the keys you want to be the shortcut for that command.
I assigned Edit.NextBookmarkInDocument to f2, which then replaces the old f2 that jumps from file to file, and shift f2 for Edit.PreviousBookmarkInDocument. You have to press the ‘Assign’ button to make VS remember the change. After this, bookmark jumps stay in the same file. I guess you could choose any shortcut you fancy, and it does at least show you if that shortcut is assigned and what it is assigned to.
There are some features which I have not explored, like when I use f2 it shows it is assigned to ‘Rename’ but it seems to not effect that function at all when you reassign and just takes it away from the jump between files command version. Maybe someone would like to delve deeper, but what I did worked without any side effects and renames outside of VS still worked with f2 so I have no idea what it was going on about.

How to open Firefox 3.6.13 without titlebar

I need to remove the Titlebar in Firefox 3.6.13 window. I googled and found this link: http://www.mozilla.org/unix/customizing.html
I realized removing the Title Bar is possible by changing the file userChrome.css in this Path :
/home/../.mozilla/firefox/../chrome/userChrome.css
but I could not find the syntax to write in userChrome.css. How I can solve it ?
NOTE: This answer was provided prior to it being known that the question was about Firefox 3.6.13 (mentioned for the first time in the comments to this answer). After that comment was made, I edited the question and title to include that significant piece of information. This answer has been left here in case someone looking for the information for current versions of Firefox happens to land on this page as the result of a search.
For the last few/several versions of Firefox (from Firefox 29.0), the "Title Bar" has been hidden by default.
You can hide/unhide the "Title Bar" from the customization dialog which can be reached by clicking on the icon on the far right of the toolbar containing the urlbar. This icon, by default, looks like 3 horizontal lines. You will then need to click "Customize" (bottom left of popup). The button to display/hide the "Title Bar" is on the bottom left of the window which will be displayed within the browser upon hitting customize.
You can also directly change the option to show the "Title Bar". In about:config (enter about:config in the urlbar) you can change the state of browser.tabs.drawInTitlebar.

What is (are) the standard key(s) for a gui widget's action?

I know on Widows, this key is space, for example, space will perform the button's click which is its action,same for radio buttons etc. Is this the standard. If not, what is?
Thanks
Yes, on a MS Window system these keys are handled by windows OS for navigation.
TAB move input focus to the next control.
TAB + SHIFT move input focus to the previous control.
ENTER Activate a button/menu.
SPACE check/uncheck a checkbox.
ALT activate the first menu group. Use arrows to navigate in menu.
UP/DOWN in a group, change radio button
ALT + DOWN In a combobox, open drop down list
There are probably more, but these are the on I came up with right now...
Was it this you had in mind?