I am using
IntelliJ IDEA 2021.3.2 (Ultimate Edition)
Build #IU-213.6777.52, built on January 27, 2022
Runtime version: 11.0.13+7-b1751.25 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6.5
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 8
Non-Bundled Plugins:
com.intellij.plugins.watcher (213.6461.19)
com.intellij.guice (213.6461.21)
aws.toolkit (1.45-213)
AWSCloudFormation (213.5744.122)
Kotlin: 213-1.5.10-release-949-IJ6777.52
When in the editor, I select text and start typing but the selected text is appended to what i am typing or wrapped. I would like to replace the selected text but cannot find a setting to do so.
I found this, but I do not have ideaVim installed.
What setting needs to be changed so that editor selected text is
REPLACED when typing?
The following options may affect the behavior of the editor when working with selection:
Settings (Preferences on macOS) | Editor | General | Smart Keys | Surround selection on typing quote or brace
Settings (Preferences on macOS) | Editor | General | Smart Keys | Insert pair quote
Related
When I run the application, logs are printing and it's not wrapped. So I have enabled View -> Active Editor -> Soft-Wrap.
It's wrapping it temporarily. If I try to run application again, it's not wrapping and again
I am enabling the soft-wrap.
Is there any permanent solution?
There is a dedicated tool bar button on the Run/Debug console to enable soft wraps. This setting is remembered. Or you can use the Use soft wraps in console option in Preferences | Editor | General | Console.
I am new to intellij IDE and trying to execute a class file and i have following issue when i execute java class file in intellij
"C:\Program Files\Java\jdk-13.0.1\bin\java.exe" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3\lib\idea_rt.jar=56791:C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\satis\Desktop\Automation Framework\KarateSeries\target\classes" HelloWorld
Hellow World
How to get rid of the locations in my intellij output
Add java.exe at File | Settings | Editor | General | Console, Fold console lines that contain.
IDE will collapse the command line and it will be less distracting.
It's not possible to hide it completely at the moment, you can vote for the related feature request:
IDEA-188173 A new option to turn off viewing folded code in Console
Just switched to intellij idea CE 2016.2. I'd like to know how to setup command line start for "idea". I created a link in the usr/local/bin, but got this error
idea[1627:20323] allVms required (null)
idea[1627:20323] Info.plist is corrupted, Absent JVMOptions key.
Use the Tools | Create Command-line Launcher... action.
For community edition of IntelliJ - on Max OSX - here's the mac'y way :) :
open -a "IntelliJ IDEA CE"
I have looked at:
https://intellij-support.jetbrains.com/hc/en-us/articles/206827547-Selecting-the-JDK-version-the-IDE-will-run-under
and
https://intellij-support.jetbrains.com/hc/en-us/articles/206827537-Configuring-JVM-options-and-platform-properties
How can I know what version and path of JDK my IntelliJ IDEA is using?
I have tried setting the environment variable IDEA_JDK.
But I am not sure which version of JDK the IDE is picking up. is there a log I could see to verify this?
System information
IntelliJ-IDEA 15
Windows 7, 64 bit
Please look at the https://intellij-support.jetbrains.com/hc/en-us/articles/206827517-Locating-IDE-log-files to locate the log file which has the command used to start Intellij IDEA
For example, on OSX, ~/Library/Logs/IntelliJIdea15/idea.log has the following:
2015-10-17 16:26:52,339 [ 1086] INFO - #com.intellij.idea.Main - JRE: 1.8.0_40-release-b94 (JetBrains s.r.o)
2015-10-17 16:26:52,339 [ 1086] INFO - #com.intellij.idea.Main - JVM: 25.60-b23 (OpenJDK 64-Bit Server VM)
2015-10-17 16:26:52,378 [ 1125] INFO - #com.intellij.idea.Main - JVM Args: <snip>
If you don't have the Help -> Show log in explorer option, then please search for the file at c:\Users\Auyshman\.IntelliJIdea15\system\log\idea.log
Another alternative is to use Process Explorer and add/enable the column called 'Image Path' to see the complete path of the process for Intellij. This should show the JDK/JRE being used to invoke Intellij as well.
Default locations
On the Mac, the default location is:
/Applications/IntelliJ IDEA <version>.app/Contents/jdk/Contents/Home/jre
On Windows, the default location is:
C:\Program Files\JetBrains\IntelliJ IDEA <version>\jre64
(Does anyone know what the default location is on linux?)
If these default locations do not work, here are two ways to find out the actual location:
Method #1
Go to Settings → Build, Execution, Deployment → Build Tools → Maven → Runner
Open the "JRE:" dropdown list
Select the "Use Internal JRE" entry.
Look at the path. (It will probably be abbreviated, so you will probably have to divine it.)
Method #2
Execute the "Find Action..." action. The default key binding for this action is Ctrl+Shift+A. This brings up a dialog where you can type the name of any action to find it and execute it.
In the dialog that opens, type "Switch" and from the suggested matches select "Switch Boot JDK...". This will execute the "Switch Boot JDK..." action for you, which is not bound to any key by default and it cannot be found in any of the menus.
In the dialog that opens you can see the currently selected "Boot JDK". There is even a button to copy the path to your clipboard.
P.S.
I find it amazing that IntelliJ IDEA does not seem to readily provide this information. Every time I install a new version of IntelliJ IDEA I have to go to the IntelliJ IDEA JRE and execute the keytool to install a certificate into this new JRE so that it can access the internal maven repositories that we use. So, every time this happens, I need to know where the internal JRE is. And I usually have to do it both for the mac at work and for windows at home, which is quite tedious.
JVM version and name (but not path) is visible in the Help->About dialog.
There's a nice feature in PyCharm / IntelliJ for automatic upload of changed files to remote machine. However, the message is cryptic:
Automatic upload completed in less than a minute: 1 file transferred (7.7 Kb/s)
It does not say what files were actually uploaded. Can this be configured somehow?
Tools | Deployment | Options (or the same via Settings (Preferences on Mac) | Build, Execution, Deployment | Deployment | Options) -- change "Operations logging" to "Details".