jetbrains-ide

How to see Query Execution Time in DataGrip?

匆匆过客 提交于 2019-12-08 19:51:32
问题 I am not able to see any query execution time option ORACLE DB's PL/SQL in JetBrain's DataGrip. There are no any help about this in JetBrain's help pages. Any help will be greatly appreciated. 回答1: This problem is going to be solved with the 2017.1 version of DataGrip. For Details : https://youtrack.jetbrains.com/issue/DBE-3063 来源: https://stackoverflow.com/questions/42945749/how-to-see-query-execution-time-in-datagrip

How to enable git annotations in PhpStorm

淺唱寂寞╮ 提交于 2019-12-08 17:37:49
问题 This is a silly problem, but I can't for the life of me figure out how to enable git annotations within PhpStorm. Normally you can just right click the line number gutter and select Annotate which displays information about who committed that code, when it was committed, and links to the commit on github. However, when I right click, the Annotate button is gray and not clickable. I do have both git and github set up within my PhpStorm preferences: There's probably another setting in there

How to get Webstorm 11 to recognize ES2015 javascript in HTML script tags

耗尽温柔 提交于 2019-12-08 15:14:52
问题 I've been having trouble getting WebStorm 11 to recognize/highlight/parse ES6/ES2015 javascript when it's inside script tags in regular HTML. Can't find a setting that seems to apply to this. Thanks in advance for your time. For example, the following js is inside a script tag. You'll notice that WebStorm thinks that a whole bunch of things are broken with it, but it executes just fine. 回答1: Using <script type="text/ecmascript-6"> rather than <script type="text/javascript"> should help you.

How do I use JSDoc type inference in WebStorm on a module with a dot in it's name? (Discord.js)

旧时模样 提交于 2019-12-08 10:56:31
问题 I'm trying to find a way to work with Discord.js TypeScript annotations using WebStorm's JSDoc type inference in a non-conflicting pattern. Here's what "works"... import Discord from 'discord.js'; /** * @param {Client} client * @param {Collection.<Snowflake, Message>} msgs */ function handleRemoveMessages(client, msgs) {} The problem is with Client, multiple definitions exist. While this works, I'd like to be able to namespace the imported types from the discord.js module into something like

IntelliJ null check warnings

僤鯓⒐⒋嵵緔 提交于 2019-12-07 01:54:11
问题 I often have code like this: protected @Nullable Value value; public boolean hasValue() { return value != null; } the problem with this is that when I do null checks like so: if (!hasValue()) throw... return value.toString(); then IntelliJ will warn me about a possible NPE whereas if (value != null) throw... return value.toString(); avoids this warning. is there a way to decorate my hasValue() method so that IntelliJ knows it does a null check? and won't display the warning? 回答1: Intellij

PhpStorm Is throwing an error for phpcs

好久不见. 提交于 2019-12-06 19:50:45
问题 PHP Code Sniffer phpcs: Can not correctly run the tool with parameters: C:\Users\sa\AppData\Local\Temp\___0.tmp\press_home.module --encoding=utf-8 Possible tool process hangup after 5 sec. Exclude press_home.module from PHP Code Sniffer analysis. PhpStorm throwing this message frequently. Any idea why PhpStorm showing this error? 回答1: Any idea why PhpStorm showing this error? Extremely likely because PHP executable that is used to execute phpcs has xdebug enabled -- execution takes longer.

Refactoring inside scope in JetBrains IDE

烈酒焚心 提交于 2019-12-06 09:06:27
I would like to refactor a variable inside a function, but only inside that function. Is this possible in the JetBrains IDE's? Example: var global = 0; function func1 (val) { if (val === global) { doSomething(); } else if (val * 2 === global) { doSomethingElse(); } else { doSomethingElseEntirely(); } } function func2 (val) { if (val === global) { doSomething(); } else if (val * 2 === global) { doSomethingElse(); } else { doSomethingElseEntirely(); } } If I try to change the variable global inside func1 via refactor, it will be changed in all of globals scope, so in func2 as well. I would like

PyCharm 5.0.1 doesn't resolve builtin modules / methods

烈酒焚心 提交于 2019-12-06 06:49:44
问题 My PyCharm 5.0.1 installation does not resolve references to any builtin modules or methods: As you can see, I have installed python over cygwin. I already tried: reinstalling / updating the python installation (from 2.7.9 to 2.7.10) reinstalling pycharm adding a interpreter path to the python-skeletons in the pycharm installation directory (this was immediately removed by the ide when saving the settings, implying, that it already is embedded) removing the interpreter (this removes the

JetBrains Rider targets 4.5 framework and no option to switch to 4.7

瘦欲@ 提交于 2019-12-06 02:30:16
问题 Basically, when trying to add NuGet package which is not supporting older frameworks getting the error. However in project configuration only 4.5 is available. During the project creation no option to select the target is present. Is there any way to configure it properly? 回答1: I haven't found out how to set up .NET framework globally but here is a convenient way: 来源: https://stackoverflow.com/questions/45571086/jetbrains-rider-targets-4-5-framework-and-no-option-to-switch-to-4-7

In JetBrains tools, how can I share IDE and project settings between multiple developers?

无人久伴 提交于 2019-12-05 17:54:31
问题 I love the JetBrains tools. But, I can't find a way to effectively share settings at the IDE level and the project level with team members. To date, I've followed instructions provided by an article on the JetBrains site, titled "How to manage projects under Version Control Systems". But, many comments on the article warn against implementing it as a method for sharing project settings. And I've run into a few issue with the method, namely not everything I'd like to be shared, is actually