Rubymine 7 Search Application Doesnot return all the result set - rubymine

I use ruby mine as IDE for ROR Application, after upgrading my Rubymine to 7.0, the full application Search (CTRL + SHIFT + F) doesnot return the full result set.
Any idea why is it so ?

in Found occurrence :
Check Usage in String Constants, you will find the string o/p results
in unclassified occurrence doesn't find result for that.

Related

How to tranform css hex to uppercase in vscode?

I'm just using vscode prettier, and I was told that hex value should be uppercase as company's standard. I've been through a search and I found their github-issue
that states,
" Personally I prefer uppercase too, but I was asked to do lowercase... But changing this would cause a lot of unnecessary churn for all Prettier users... this decision has been made and is not going to change. An option won't be added." - Sep. 29,2018
So basically, prettier transformed hex value to lowercase, and does not provide an option to change it to uppercase.
I want to ask, have they change their decision now and made an option to transform css hex value to uppercase? And if theres no really option for this in prettier, is there any alternatives to achieve this?
My basic alternative that I used is the idea of #rioV8, however I would prefer to use replace field instead of Transform to UpperCase, I think that would be more quick.
I would like to provide this as answer because it's at least working.
In vscode find #(?:[0-9a-fA-F]{3}){1,2} using regular expression, and replace it with \U$0.
Updated: how to auto transform after save
Follow this link: How to automatically run a "find and replace" after save?
Since \U$0 did not work well, we looked for alternatives.
Search by regular expression
Open a search window with cmd + shift + f, click .*, and execute a regular expression search with #(?:[0-9a-fA-F]{3}){1,2}.
Select the target string
In the search results window, use cmd + a to select all and cmd + shift + l to select the target string.
Open the command palette
Open the command palette with the cmd + shift + p.
Convert to upper case
Type upperor lower on the command palette and execute.

Netbeans - Whitespace

I have to use Netbeans which I never used before and there are 2 format settings driving me crazy :/
1) Dereferencing [i+1] is turned into [i + 1]. I hate these two whitespaces.
2) All my comments are directly put behind the code and all my tabs for ordering comments are lost.
I know I can set it somewhere in Tools->Options->Editor->Formatting but even after searching and googling (crazy word) I did not find this setting.
For 1)
This is in Tools -> Options -> Editor -> Formatting
The select Java as the language and "Spaces" as the Category.
It's in the section "Around Operators" and the one you are looking for is "Binary Operators". That however applies to any occurance of e.g. + (or - or other similar operators) not only between brackets. E.g. if that option is disable i = x + y is changed into i = x+y
I have no idea what you mean with 2)

How to search for a string in my entire project in Eclipse IDE?

I need to find a string, but it is too time-consuming to Ctrl+F every class. Is there a faster way to search the entire project?
Select the String and Control+Alt+G in Eclipse (Windows).
Use the Search Window, to open it Control+H in Eclipse(Windows).
Much better than Control+H that may takes ages in Eclipse is to install a full text search plugin like Quick Search from Spring Tools or instaSearch. It will increase your productivity immensely.
Check out this blog post:
http://howtodoinjava.com/2015/04/03/use-eclipse-quick-search-plugin-for-faster-text-searches/
You can search for specific string using ctrl + H, choose 'File search' tab.
But if you want search any string, try use a regular expression at 'Containing text' ".+".
If you're trying search string in java code, regular expression above will match strings used at annotations. To avoid this try this one ^\s*?[^#]\w*?".+".*$

Eclipse : search for only a particular word under Eclipse IDE

Is it possible to search for only a particular word under Eclipse IDE .
For example i need to search for a word "sub" .
But the problem is that , when i did ctr l + H and typed the word "sub" , it producing all matching results such as
submit ----etc , but i want the exact word "sub" in my Search .
Please let me know if its possible ??
Thanks in advance .
Try using regular expressions in the File Search Dialogue (Ctrl + H). You can use the word boundaries modifier \b like so :
\bsub\b asks eclipse to search for all matches in which sub is both followed and preceded by a word boundary. Read more about word boundaries here.
Here is a sample snapshot of the Search Results using the above:
If you want to restrict the search to the current project then try selecting 'Enclosing Projects' radio option. This option will be disabled if you don't already have a file from the Project opened. To get past this annoyance, I would recommend creating a Working Set with just the project(s) of interest and then restricting the search on that Working Set.
You can do it from Find/Replace menu (CTRL+F) and flagging the Whole word option :
Otherwise from the standard Search menu(CTRL+H) you can achieve the same result using an appropriate regular expression, in your case you just need to append a space after(or/and before) the sub text and you will get only the whole word.
Select the word and then press Ctrl+Alt+letter(G) it will search the word where it is used.

Eclipse Shortcut to Split Long Strings

I swear I've seen someone do this, but I can't find it in the various lists of shortcuts.
Given:
String s = "A very long ............................ String";
Is there an Eclipse shortcut to turn it into:
String s = "A very long ............................ "
+ "String";
Yup - just hit return when your cursor is in the middle of the string.
Admittedly that puts the + at the end of the first line instead of the start of the second, which is irritating if your style guide demands the latter, but if you're not fussy it's great :)
All the formatting templates in Eclipse will put the plus on the next row (which I find really annoying), so you can simply apply the code formatter and the plus will end up on the next row.
There may be a Quick Fix (Ctrl + 1) for this as well.
I was amazed in 3.4 to discover that there are Quick Fixes to transform +-based string concats into uses of StringBuilder or MessageFormat. Brilliant!
Also you can format code using regular expression. Select expression, press Ctrl+F and use:
Find: "\s*?\+\s*?\R(\s*?)"
Replace with: "\R$1\+ "
☑ Regular expressions