I am developing using WebStorm and its plugin LiveEdit.
So as I start changing some SCSS code, it starts to recompile all files and outputs an error, because I am still typing.
But the most irritating thing is that Run output is popping up each time it compiles with an error and this makes my IDE to jump up and down, sometimes overlaying line of code is being edited.
So my question is it possible to disable autopopup of Run output ? Or maybe any other ways to hide this window. I can set longer delay, but this still won't solve the problem.
Reposting #LazyOne comment on the question as a working answer:
Go to Preference > Tools > File Watchers
Select your watcher (most likely it will be Babel)
Click on the Edit (pencil) icon in the bottom
In the File Watcher window click on Show Console and set it to Never: Example - link
Click Ok and save
Related
This sounds like a duplicate post but I tried to find answers to this question online and can't seem to find any helpful information...
I opened several downloaded class files that form one project, and can't seem to run the code. There is no toolbar with the run and debug button and the shortcut (^R) is not working. Right-clicking on the files neither gives the option to execute the code.
Looking at your screenshots (especially #2, the one that show the File menu) it seems to me that you are in the Light Edit mode where the whole IDE pretty much is just an editor.
Switch to the full IDE mode (where you open the actual project) and you will have the full functionality.
https://www.jetbrains.com/help/idea/lightedit-mode.html
I'm not sure if this is a bug or this is normal behaviour.
I'm using WebStorm on Mac (I think I remember having the same behaviour on Windows but I'm not sure).
I have always many files open. When I close a file, WebStorm is not doing what I want:
Expected behaviour:
The focus is on the most recently used tab, i.e. on the last file I had focus on before focusing on the file that I closed.
Actual behaviour:
The focus goes on the file where its name is the closest alphabetically. I'm not entirely sure that is the behaviour but it is definitely not on the Most recent used file.
Example with file names:
I have 5 tabs open, the most recent used tab list look like
So when I will close navbar.controller.js, I expect changeLanguage.controller.js to have the focus.
But instead when I closed it, the focus went on jwt.js
This is super confusing as in real work environment, I am used to have ~20tabs open and this confuses me a lot.
After looking a lot, it seems that the answer was already provided on this wonderful website: Change to most recently used tab when closing a tab in IntelliJ IDEA?
I am unable to find any error in Intellij even after making mistakes
For example: If i write following statement
String str1 =new String("Shoaib")
It should show red color stating that ; is missing.But it is unable to do so.
I may have change something internally
What i need to do to work above issue
To fix this just disable the power saver mode and add the live edit plugin. When you disable the power saver mode it will automatically prompt in right bottom corner for installing the live edit plugin just click yes on it and restart your intellij, It will work as expected.
I am trying to set breakpoints, nothing happens for couple of classes that I compiled recently with "mvn install". I am able to set breakpoints to classes which were already built by someone else.
Please let me know if anyone knows how to solve it.
Had the same issue while using IDEA CE 15:
Removing the Python CE plugin 5.0.143.103 fixed the issue... but no Python parsing! :(
File -> Invalidate Caches and Restart helped solve the problem. Thanks Tomasz Nurkiewicz for the directions
In my case, the issue was caused by PHP Plugin (https://plugins.jetbrains.com/plugin/?id=6610). Even after "Invalidate Caches and Restart", the issue persisted.
Uninstalling that PHP plugin, solved my problem.
By nothing happens do you mean that breakpoint isn't hit? Take a closer look at breakpoint icon. Especially see the difference between
and
icons. The latter indicates the code you run while debugging doesn't have any meaningful instruction on that line.
One of the reasons for such behaviour is when code you run is not the code you see. It can happen when application server can is still running old JAR or something similar. This seems to be the case since you say that breakpoints work in older code.
The solution to fixing breakpoints was adding the wildcard file extension "*.py" to the Python File Types in Python (it must have the wildcard symbol prefix, not just ".py") through taking these steps:
Go to:
IntelliJ IDE > Preferences (CMD+,) > Editor > File Types > Recognized
File Types
Under "Recognized File Types" heading:
Scroll down; Select "Python"
(associated Registered Patterns will be shown below)
Under "Registered Patterns" heading:
Click "+" icon; Enter "*.py", Click OK
(do whatever is necessary to achieve this, including removing/renaming others without the wildcard if necessary)
Add breakpoints by:
Select line(s) of code (not an empty line or comment); Going to: Run >
Toggle Line Breakpoint (CMD+F8)
Configure debugging with breakpoints by going to:
Run > Edit Configurations...; Click "+"; Select "Python"; Add a value
for the "Name" property; Select location of the ".py" file to debug
(in the "Script" property); Click OK
Debug using the breakpoints by going to:
Run > Debug... (Fn+CMD+F9); Wait until it stops at a breakpoint;
Inspect variable values shown in the file itself by hovering over
variable; Click variables and view the Frame and Variable details in
the Debug window by going to: View > Tool Windows > Debug (CMD+5)
Important Note: Initially I tried doing the following but after each one I was still unable to use breakpoints afterward:
Removing and reinstalling the Python plugin:
Entering CMD+,; In the dialog window going to Plugins > Install
Jetbrains Plugin.. > "Python" > Install
Updating IntelliJ Ultimate edition to the latest version v2016.3.4
Going to:
File > Invalidate Caches and Restart
Right click on the gutter (where you normally click to set breakpoint)
select "Configure Gutter Icons..." then enable the checkbox at the top that says
"Show gutter icons"
That fixed it for me
Simply closing and reopening file worked in setting gutter breakpoints
This is embarrassing but posting here in case this solution will help somebody else: A breakpoint will not show up if you attempt to place it between executable lines of code. The breakpoint must be located on an executable line of code to work. Make sure you click on the gutter next to an executable line or place your cursor on an executable line when you use the shortcut. Once I did this, the breakpoints worked.
"Click the gutter at the executable line of code where you want to set the breakpoint." https://www.jetbrains.com/help/idea/using-breakpoints.html#set-breakpoints
My first day using this IDE...
is there a way to configure the IDE to open files in the project by double click? It is rather painful having to drag files from the project overview into the editor window.
You can change the KeyMap.
Go to File->Settings and find the keymap section.
You will have to create a new KeyMap by clicking copy, and then look in the View section for "Jump to Source" and change/add the keymap you want.
However, as Bozhidar Batsov noted, double clicking may not always work so well. Whether it works may vary by OS and/or windowing system. I have no trouble with it in Mac OS X, but it doesn't seem to work well in openSUSE.
There are also other predefined keymaps that you can select from this settings screen. They're set up to resemble other IDEs, so you might find them helpful if you're transitioning from something else.
It is easy way to do in windows.
I found a great solution to this problem by Jelmer Kuperus over at Orange11.
Create an .Xresources file in your home directory. Add the following line:
*multiClickTime: 400
Jelmer explains that this setting changes the default double-click speed from 200ms to 400ms, effectively slowing it down. Save the file and then run:
xrdb ~/.Xresources
The effect is immediate, no need to logout or reboot. Double-click in Intellij works as expected. I did try changing the mouse double-click speed in System Settings first before trying this out to see if that made a difference but it did not.
I am using Ubuntu 11.04, Intellij 10.5.2, and Sun JDK 1.6.0_26. YMMV
Use F4 to open quickly the selected files. Btw double clicking on files should work as well(at least in theory). Swing's buggy handling of such events, however, causes the double click to not always work in IDEA, so I eventually stopped double clicking and switched to using F4. You can also use "Autoscroll to source" from the projects menu - this will open the source files as soon as you select them in the project browser.