Webstorm highlight files with warnings - webstorm

While WebStorm correctly highlights all my files containing errors with red underwave, I was not able to find out how to similarly highlight files containing warnings.
I would appreciate something like orange underscore. Is it possible to achieve? How?

Not currently possible, please vote for IDEA-96288

Related

Default or beautiful C/C++ Syntax in VSCode

I have no idea what on earth has happened to my VSCode. I am unable to trace which or exactly what extension caused this. But, the C++ syntax coloring and theme looks absolutely ugly.
I want this,
How can I get that back? I am unable to figure this out. I uninstalled all C/C++ extensions and still the issue remains.
VSCode colorizes brackets and parentheses to make it easier to see which opening bracket belongs to which closing bracket.
You can turn it off in the settings:

how to I mass FIND code with Notepad++ (or similar tool)

I have code that looks like
'.Parameters.Add("p_Date", OracleClient.OracleType.DateTime).Value
or
.Parameters.Add("p_Date", OracleClient.OracleType.DateTime).Value
The only difference is that one is commented and the other is not.
I want to search for all code in my project that aren't commented so I can focus on that
I don't mind downloading an IDE that you're familiar with to help me ONLY find those lines that are NOT commented.
Using Notepad++
The simplest way is to find with Regular expression checked.
(?<!')\.Parameters\.Add\("p_Date", OracleClient\.OracleType\.DateTime\)\.Value.*$
or
(?<!')\.Parameters\.Add.*$
To filter lines that don't begin with cmd., add (?<!cmd) before \.Parameters, so the regex becomes:
(?<!')(?<!cmd)\.Parameters\.Add.*$

Visual Studio Code - Removing Lines Containing criteria

This probably isn't a VS Code-specific question but it's my tool of choice.
I have a log file with a lot of lines containing the following:
Company.Environment.Security.RightsBased.Policies.RightsUserAuthorizationPolicy
Those are debug-level log records that clutter the file I'm trying to process. I'm looking to remove the lines with that content.
I've looked into Regex but, unlike removing a blank line where you have the whole content in the search criteria (making find/replace easy), here I need to match from line break to line break on some criteria between the two, I think...
What are your thoughts on how criteria like that would work?
If the criteria is a particular string and you don't want to have to remember regexes, there is a few handy keyboard shortcuts that can help you out. I'm going to assume you're on a Mac.
Cmd-F to open find.
Paste your string.
Opt-Enter to select all of the instances of the string on the page.
Cmd-L to broaden the selection to the entire line of each instance on the page.
Delete/Backspace to remove those lines.
I think you should be able to just search for ^.*CONTENT.*$\n, where the content is the text you showed us. That is, search on the following pattern:
^.*Company\.Environment\.Security\.RightsBased\.Policies\.RightsUserAuthorizationPolicy.*$\n
And then just replace with empty string.
I have already up-voted answer of #james. But.. still I found one more easy and many feature available extension in VS Code. Here it is
It have much easy options to apply filters.
To match specific case mentioned in question. I am attaching screenshot which display how to use for it. I am posting this for others who come here in search for same issue. (Like I came)

RegEx: Best way to search and replace $!esc.html($!{XYZ})

I have inherited a project that includes html email templates and the text files that get sent along with it.
The back-end puts it all together, so that it's a multipart email message in the end. In other words, if someone has HTML turned off, they can read the text version. TMI.
Problem:
The guy before me left all kinds of $!esc.html($!{XYZ}) in the text files. Where XYZ stands for various different strings in the code.
I haven't touched RegEx in years and am at a loss.
Question
Is it possible to look for every occurrence of such variables in the text files and replace it with: $!{LAST_NAME}?
Can someone point me in the right direction? I have tried one of those RegEx recipe sites, but I got stuck. Any suggestions and/or help with this would be tremendously appreciated.
I am using SublimeText3, and I know how to find & replace in .txt files only.
Peace. Calm. Light.
Not sure what 'flavor' of regex sublime uses, but this should work. I'm assuming the XYZ means it will only be letters in there?
\$!esc\.html\(\$!\{\w*\}\)
The following version accounts for any _'s
\$!esc\.html\(\$!\{(\w|_)*\}\)

How to search in Visual Studio Code using regex to match only uncommented code?

For example, I have the following lines:
//sys.log(siteNameToPrepare);
//sys.log(siteNameToPrepare);
// sys.log("downloadFolder: "+downloadFolder);
// lorem ipsum ...
arbitrary codes here...
var a = _POST;
sys.log("groupManagementHandler.jhp _POST is not object");
sys.log("groupManagementHandler.jhp _POST is not object");
I only want to match sys.log(xxx) that is not commented out.
I tried to use the following regex:
[^/ ]sys.log
on the search bar (Ctrl+Shift+F), with Regex ON, to find the uncommented sys.log within files of a folder.
It matches uncommented lines in several files, however, I missed some lines that has couple of whitespaces in front of sys.log.
My question is how to match those lines? What am I missing here?
Seems like I couldn't find the answer in Google and Stackoverflow, I found this one, but this one is for Visual Studio, not Visual Studio Code.
Visual Studio Search Uncommented Code
Here's the error message I got by using the look ahead pattern:
Thanks to #Wiktor Stribiżew, now I can confirm that the regex lookahead pattern for searching within files works in older Visual Studio Code (V1.2.0) but not works in Version 1.17.1.
So this question may somehow can be seen as a duplicated question due to the bug of newer version VS code, that led me to post this question.
For someone who wants to know the answer right away, here it is as suggested by #Mark at the comment section of my question:
First open the "search in files" field using Ctrl+Shift+F
Turn on the Regex function (right-most button of the input field)
Put the following regex:
^\s*sys.log
or this regex also works
^[^/\n](?:/[^/\n]+)*sys.log
The above regex-es work for my case.
Before I got this answer, we had a discussion with #Tim and #Wiktor, they both suggested a lookahead regex pattern, and that pattern actually works on older version (V.1.2.0) of Visual Studio Code as #Wiktor pointed out. But apparently,
the advanced Regex feature for searching in files is no longer supported since V1.12.0 version. However, it's still working if you search within the file using Ctrl+F.
Thanks to #Tim, #Wiktor and #Mark who have helped to clarify things out.