Plugin for R# similar to CodeRush "statement highlight" - resharper

See here http://www.hanselman.com/blog/InSearchOfThePerfectMonospacedProgrammersFontInconsolata.aspx - for want of a better description - the statement block highlighting - eg in the pics on the link the "statement blocks" are grouped with a vertical line. I understand this is a feature of CodeRush - does R# have either anything similar, or a plugin to do the same?

I use the latest version of ReSharper that is currently available — ReSharper 4.5 — but unfortunately I don't believe there is any feature for drawing a vertical line between matching braces, as in the screen-shots you referenced.
The feature I find useful, which Ben mentioned, is the matching brace highlighting, however this only takes effect when your cursor is adjacent to an opening or closing brace.

R# has a feature called Highlight current line, which you have to enable in the ReSharper options. This looks like crap on dark background, high contrast themes, so if you use one I'd suggest going into the Visual Studio options, under Fonts & Colors and going to "ReSharper - current Line" and making the background color a darker shade that doesn't have as much contrast with the background.
R# also has matching brace highlighting, which is color-configurable as well under the same VS option dialog.
Does that answer you question?

Notepad ++ has a nice brace matching feature, with vertical lines matching the braces. It's not VS, so I only use it when I am faced with some confusing JS, cut and paste, figure out the braces and go back to VS. It would be GREAT if this sort of feature existed in VS, or R#.

Related

How can I find out exactly which rule is applying syntax highlighting to a particular code element in VS2022 with Resharper?

I'm running Visual Studio 2022 with Resharper (EAP) and the "Cyberpunk" theme from the VS marketplace (https://marketplace.visualstudio.com/items?itemName=T0uchM3.CTVS19)
Something is applying a white background to the syntax highlighting, but only on strings in JavaScript code which contain jQuery/CSS selectors - see this example:
Regular strings (e.g. the "click" in event handler declarations) are fine. I've been through the VS color list looking for anything with a white background but haven't found out where this is coming from.
Any way to highlight a code snippet and see what rules/plugins are applying syntax highlighting to that specific code snippet?
The specific setting here is Resharper Injected Language Background in Visual Studio Options > Environment > Fonts and Colors:
(Thank you #buhakmeh for figuring this one out!)

IntelliJ - Collapsable blocks

I've used Php for quiet some time and really liked/got used to the feature to collapse code blocks surrounded by curly brackets, with a click on the little plus/minus icons next to the linenumbers.
PhpStorm
Now I'm doing a Java project with IntelliJ and would like to have this feature too. It works for certain cases like classes, functions and custom regions, but not for if/else, switch statements.
IntelliJ without icons
Already tried changing the Folding options, but without success. I know I can achieve the same result by some keyboard-shortcut, but I would like to have those little plus/minus icons next to the linenumbers.
After using the shortcut the little icons appear though.
IntelliJ with icons
Am I missing some options or is there a plugin that can do that?
Currently it's shown for classes, functions, and custom regions. Please vote for this request to change default behavior: https://youtrack.jetbrains.com/issue/IDEA-144819
It is not clear from your question if you tried to enable "code folding outline" feature in the settings, which is under Editor -> General -> Code Folding -> Show code folding outline which does what you want basically.

MacVim/YADR Autocomplete Issue

I have installed MacVim, and https://github.com/skwp/dotfiles (including all the dependencies such as zsh, etc). and I am having trouble getting auto complete to work.
When I'm typing
<tit a pink box shows up with <title>Index</title> and according to the https://github.com/skwp/dotfiles documentation pressing tab will make it autocomplete. Which sometimes works, sometimes it just adds two spaces, however that's not really my question.
When it does auto complete it turns it into
<<title>Index</title>> notice the two < and >
How can I fix this?
Wow… 79 plugins? Really?
At a low level, your problem is that you give someone else too much power over your configuration, your toolset and your workflow.
At a higher level, you are probably misusing your config's auto-completion feature. I think that you have a conflict between the neocomplcache, delimitmate and snipmate plugins: the 1st deals with auto-completion, the 2nd automatically closes pairs of characters (<>,"",()…) while the 3rd does "tab-expansion" on the tit keyword.
Basically, I believe that you are supposed to type tit<Tab> instead of <tit<Tab> to avoid triggering delimitmate.

Moving from coderush to resharper

I am about to make the switch to resharper from coderush after using it for 30 days and have some questions I would like to see if I can get some help on.
1: Can you change the resharper code colors? I tend to prefer dark themes so I would like to be able to migrate to a dark theme once the change is complete.
2: Do any other addin provide the member icon paint functionality of Coderush? It is the only feature that I do actually miss as it is handy for scanning. I don't mind paying for the functionality if it works.
EDIT: Found out how to change syntax colors.
There's no direct replacement of "paint member icons" in ReSharper.
I suggest that you use the File Structure window instead, with "Track caret in editor" and/or "Automatically scroll to source" options on to synchronize between focus in File Structure and the caret in the text editor.
As to other VS plug-ins, to my knowledge there aren't any prominent plug-ins that have that - neither VS10x CodeMap nor Productivity Power Tools provide anything similar.
1: Can you change the resharper code colors? I tend to prefer dark
themes so I would like to be able to migrate to a dark theme once the
change is complete.
As well as being able to change Resharper colours (In Tools->Options->Fonts and Colours, look for the "Resharper *" related options), R# supports Visual Studio light and dark themes:
http://www.jetbrains.com/resharper/webhelp/Managing_Color_Themes.html

Linux Editor that can highlight all instances of a selected word [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 1 year ago.
Improve this question
Is there an editor in Linux that can highlight all instances of a word when the word is double-clicked? I was using Notepad++ in Windows which provided that feature. Now I am missing it in Linux editors. I tried Kate, Gedit, etc.
To enable this feature in Geany do the following:
Install the addons plugin: sudo apt-get install geany-plugin-addons
In Geany, click on Tools -> Plugin Manager
enable the plugin Addons (check in the column Active)
configure the plugin by clicking on Preferences
enable the option Mark all occurrences of a word when double-clicking it
First install the addons plugin:
sudo apt-get install geany-plugin-addons
and then apply the answer of mr13.
What version of Kate where you using, Kate has that exact feature as described here.
This Geany addon didn't work for me (on Fedora), rather this one did: http://sourceforge.net/projects/geanyhighlightselectedword/. Though installing it was a bit complicated.
Summary
Eclipse has something similar. Install the Darkest Dark plugin, then double-click a word and press Ctrl + F to highlight all instances. Press Esc to unhighlight.
Both Sublime Text 3 and 4 and Microsoft Visual Studio Code (VSCode) have the double-click feature. Just double-click any word to highlight all instances of it. Click away anywhere to unhighlight.
Details
The top 3 modern, Linux-compatible editors which come to my mind when I think about software development are the following. All 3 of them are powerful, modern, widely-used, and cross-platform (Windows, Mac, and Linux)!
Eclipse
free and open source software (FOSS), and no-cost, but very heavy.
My go-to and primary editor for professional and hobby software development because it's got an outstanding, world-class indexer which allows you to Ctrl + Click on any variable or function name to jump to its definition.
Links to my full setup documentation are found here.
Sublime Text 3 and 4
proprietary/closed-source shareware, a professional and very powerful and very light-weight tool, no-cost for an unlimited full-access trial period, and relatively low-cost for a license
My primary editor for individual files--I frequently edit the same file at the same time with both Eclipse and Sublime Text 3 and 4, since Sublime has wonderful multi-cursor support for simultaneous editing of multiple lines all at once! I also have Eclipse set as my git editor of choice (see my answer here: How do I make git use the editor of my choice for commits?)
Learn to use it with this live, interactive tutorial-style "plugin": https://sublimetutor.com/.
Microsoft Visual Studio Code (VSCode)
free and open source source (FOSS) source code, and no-cost; minor caveat: technically, the binaries distributed by Microsoft are freeware, though the source code is free and open source
One of the industry's most popular editors today, but also a relatively new entry into the field. I haven't used it much yet.
So, let's see how each of these 3 can "highlight all instances of a selected word":
1. Eclipse
If you install the plugin Darkest Dark Theme with DevStyle, you get the following features:
Just place your cursor on any variable and it automatically highlights all instances of this variable, like this. Here you can see _currentChannel_i highlighted in black in 4 places, and in some yellowish color in one place near the bottom-left:
[MY FAVORITE] Double-click any word to highlight it, then press Ctrl + F to highlight all instances of it! Use the buttons in the find bar in the top-right (also shown circled below) to choose "Case sensitive search" and/or "Match whole word" as desired too. You can also choose "Regular expression search". Here you can see 8 instances of _currentChannel_i all highlighted in blue, including some in the comments! I use love this feature and use it all the time! Press Esc to cancel the Ctrl + F blue highlighting.
See here for links to my full setup documentation.
2. Sublime Text 3 and 4.
From here, if I'm doing some fancy multi-cursor editing, I like to right-click the screen and go to "EasyShell" --> "Open with default Application" to open up this same file in Sublime Text 3 or 4.
In Sublime Text 3 and 4, you simply double-click any word to highlight all instances. That looks like this. Here, I have double-clicked _currentChannel_i, and you can see 9 instances of it highlighted/boxed, including in the comments. Simply click away anywhere to undo this selection.
Note that you can also highlight a word and then press Ctrl + D repeatedly to highlight instances of it, one-at-a-time, each with a new cursor. This is handy when editing all instances of a variable in a single file all at once, for quick-editing/refactoring, rather than using the Ctrl + H Find and Replace tool.
3. Microsoft Visual Studio Code (VSCode)
This one is super easy too! Just double-click any word to highlight all instances of it--same as Sublime Text 3 and 4. Click away anywhere to undo this selection. Here, I have double-clicked _currentChannel_i, and you can see 9 instances of it highlighted, including in the comments.
So, which editor to use?
Well, Sublime Text is the lightest, by far, but lacks a good indexer and function view/explorer. It has advanced, modern features like multi-cursor mode. It is made by one lone and very-talented developer, so if you use it, please go buy a license to support his work. That's his livelihood.
Eclipse is the heaviest, by far, but lacks modern features like multi-cursor mode. It is the oldest of the 3, by far, and has a world-class indexer. Since it is the oldest (first released in 2001) and FOSS, it is widespread and is used as the base for many other professional editors and microcontroller development platforms, such as the STM32CubeIDE, and the Arduino Professional IDE, both of which are Eclipse-based. For that reason alone, it is worth learning.
Microsoft VSCode is the newest (first released in 2015), and is more light-weight than Eclipse and more-advanced and feature-rich than Sublime Text. Since it came after the other 2 editors, it was able to borrow ideas from Sublime Text (I'm supposing), such as multi-cursor mode, which is ingenious. Therefore, it contains that feature (see here: https://code.visualstudio.com/docs/editor/codebasics#_multiple-selections-multicursor), as well as a powerful indexer (which I can't comment on since I haven't used it), and an "OUTLINE" view in the left-hand pane to view a list of functions, definitions, etc., like I can see in the "Outline" view in Eclipse in the right-hand pane. Since it is backed by Microsoft, it is arguably the best-supported of the 3.
Since I am most-familiar with Eclipse, I prefer it in conjunction with Sublime Text. If you are brand-new to these editors, however, I recommend you just start with Microsoft VSCode and go from there. Optionally, try out my Eclipse installation and configuration instructions above if you ever find yourself needing or wanting to use Eclipse directly, or STM32CubeIDE or the Arduino Pro IDE.
VIM can do this:)Not by clicking, but there is a way to quickly search for a word and highlight all occurrences.
Check this out:
http://vim.wikia.com/wiki/VimTip14
There's Geany, but I don't know if it does that.
You could customize gedit to do much of what you want:
http://grigio.org/pimp_my_gedit_was_textmate_linux
If you can't get what you want, you could install Notepad++ with WINE. Try something like this.
In Linux Mint 19 Tara
Install geany-plugin-automark, then start geany, go to
Menu -> Tools -> Plugin Manager and Enable/check Auto-mark

Resources