How to change the highlighting color for matching parentheses / double quotes in VS2013 for VB.NET? - vb.net

How can I change the highlighting color for matching parentheses / double quotes in Visual Studio 2013 (language VB.NET)?
In Tools -> Environment -> Fonts and Colors -> Display Items, I tried changing (and ran over all other options but can't seem to find a suiting one):
the colors for Brace Matching (Highlight)
the colors for Brace Matching (Rectangle)
It annoys me I can't see the characters when they are highlighted.
Edit: "Brace Matching (Highlight)" -> Item Background, greyed out, changing the foreground color on this option doesn't seem to change anything either:

Go to Tools -> Environment -> Fonts and Color -> Brace Matching and change the "Item Background"
With the dark theme Maroon works well.

Related

How to stop VS 2022 Standard Edition from highlighting the code when I select search

Background
Using my newly installed VS 2022, when I search within the text of my code (say using <Ctrl>+<F3> followed by <F3>), the entire text is background-highlighted in dark-blue, forming a jagged edge of lines. The jagged edged lines are due to the fact that the lines of my code are not all of same length. This is especially contrasted against the black background (where I have no code) in "Dark" mode.
The "Blue" mode has the same effect but the contrast of background-highlighted text and background with no text, is not so pronounced.
To end this highlighting I need to escape out of the search mode.
Question
How can I stop this background highlighting of the code when I search?
What I needed to do is change the background of the search in "Find Scope Highlight"
Select the menu: Tools.(Options...).Environment.(Fonts and Color).(Find Scope Highlight) and change the [Item background] to Black

How to select a text and put it directly on the search and replace bar of IntelliJ

I'm an IntelliJ user since years and I work on a Mac.
For a long I was able to execute like an automata the following procedure:
select a portion of a text in a file using the mouse
pressing a combination of keys
seeing the selected text in the find & replace bar of the IDE.
Now, I can't remember how to do it.
I have search through the docs of the search & replace in a file, but I cannot see that option.
Just to avoid confusion, the toolbar I'm talking about is the following
I am using IntelliJ on linux (Keymap : Default for xwin) and to select text I use Ctrl+W or Mouse double click. Then ctrl+R will put this text in replace text box
Probably it's a kind of bug. It should work by selecting the text and pressing cmd+r.
Cases when it works:
I select a piece of text in a line and I press cmd+R.
I select the whole line (including white spaces/tabs at the beginning)
Case when does not work:
I select a line from the first character to the last.
More context. I use IntelliJ 2017.2.5 on Mac Os Sierra.

Why is Intellij IDEA highlighting text in standard out like a hyperlink?

I am printing out the contents of a shapefile with ordinary printf statements and for some reason Intellij IDEA Ultimate is underlining and coloring blue a fragment of the output as though it thinks it is a hyperlink:
If I hover the mouse over the blue text, the cursor changes to a finger, like it is a hyperlink. Of course, nothing happens if I click it because it is obviously not a hyperlink. What is going on?
It seems to have something to do with the colons. If I delete them, then the text is no formatted. Also if I use only one colon like this:
X: -71.545101 Y 42.345041
Then there is also no formatting. Only if both colons are present does the blue underlining appear.
org.jetbrains.plugins.groovy.execution.filters.GrCompilationErrorsFilterProvider does that using the following pattern: (file:)?(^|[\W])(?<file>(?:\p{Alpha}\:|/)[0-9 a-z_A-Z\-\\./]+): (?<line>[0-9]+).*
Report a bug or disable Groovy plugin.

How to remove unnecessary blank line on code formatting in IntelliJ?

Is it possible to remove empty/blank lines using code formatting in Intellij IDEA?
Yes. It is possible to configure the number of blank lines in the settings menu (CTRL+ATL+S): File -> Settings -> Editor -> Code Style -> Java(or Scala or whatever your language is) -> Blank Lines
File >> Setting >> Editor >> Code style java >>Blank lines tab
You should change to 0 in code label(as picture), It would remove all unnecessary blank line when press format shortcut: ctrl + alt + L
You can find and replace with regex option also ^(?:[\t ]*(?:\r?\n|\r))+. It searches all empty lines in file. You need to just replace it with empty
I use regular expressions to remove extra blank lines from the code. Here are the instructions.
Open Find and Replace dialog. Use shortcut CTRL+SHIFT+R.
In the search box type ^(?:[\t ]*(?:\r?\n|\r)){2,}. This will search for two ore more blank lines.
In a replace box type \n. This will replace with one blank line.
Open Reformat Code dialog and click Run. Use shortcut CTRL+ALT+L.
This works on all JetBrains IDEs. Use the screenshot as referece.
Just in case it helps someone using newer versions of Intellij, in Intellij IDEA 2016.2.4 it is File -> Other Settings -> Default Settings -> Editor -> Code Style -> Java(or Scala or whatever your language is) -> Blank Lines
For those trying to remove blank lines at the end of the file, this became a feature as of August 2020.
The proper place to configure this action is under Settings|Editor|General|On Save. Check "Remove trailing blank lines"

Add quotation marks to selected word via shortcut

Is there any way (Plugin, Script) to add quotation marks (or square brackets or parentheses) at the beginning and the end of selected text via a keyboard shortcut in the Kate editor?
I think of something like selecting a word and then pressing Ctrl-U (this would upcase the selected word). Is there something similar for quotation marks?
The "Configure Shortcuts" menu does not provide this option.
This should be possible to do by using Kate's Javascript plugin system: http://docs.kde.org/stable/en/kde-baseapps/kate/advanced-editing-tools-scripting.html.
By finding the word at the current cursor position and inserting text before and after, you could create a “surround with quotation marks” function.
For an example of a Kate script, see here: http://kucrut.org/move-cursor-to-next-prev-paragraph-in-kate/.
One solution would be the following:
Go to Settings > Configure Kate > Editing
Activate the Auto brackets option
Now you are able to wrap the selected text with brackets.
Though there is one drawback. The Auto brackets option is "always on", meaning that once you type "(" the corresponding ")" also comes up.