Change WebStorm LiveEdit Port (63342) - intellij-idea

How can I change the port of the LiveEdit feature in WebStorm ?
The default port is 63342, so i can run my project from : http://localhost:63342/PROJECT_NAME.
but due to authentication issues I need to switch to another fixed port number.
Help please,
Thanks

WebStorm 8
In WebStorm 8 follow menu (or press Shortcut Alt+F7):
File -> Settings
Category:
IDE Settings -> Debugger -> JavaScript
And there change "Built-in server port".
Hint:
If you have a firewall warning when starting WebStorm then you must uncheck the checkbox "Can accept external connections" inside the settings window.
WebStorm 9, 10, 11
In newer WebStorm Versions you'll have to enter the Settings like explained above, but enter a different category.
Category:
Build, Execution, Deployment -> Debugger

Default built-in server port can be configured in IDE - Settings/Debugger/javaScript/built-in server port.

Well you will need to go onto chrome for this one. Firstly you need to go into extensions:
You can quickly do this by typing chrome://extensions/ into your awesomebar, and then just hitting ENTER.
Makee sure developer mode is enabled:
Click options underneath Jetbrains IDE support. It will open up a new window where you can change your port.

Press Key CTRL +ALT +S
Or
Got to Menu File->Settings->Build, Execution and Deployment-> Debugger
Change the server port. Keep in mind, the port you are trying to use should be free.
If you want to see the live edit. You have to install the chrome extension.
Install Jetbrain Chrome extension
Go the option of IntelliJ idea extension. change the port here also for synchronization.
Restart your IntelliJ idea for effect.

Just a heads up to anyone coming here/struggling - for whatever reason, I had to change the JetBrains chrome extension to use 127.0.0.1 instead of localhost to get things working.

Related

How to fix Ctrl Click in IntelliJ Idea

I found, that Ctrl-Click (for example, on class usage) doesn't work on one of my installations of Idea. Simultaneously:
Context menu action like Go To -> Implementation(s) works
Control click in PyCharm works
Machine is remote desktop Windows Server 2016. Idea is 2021.2.
What can be done to fix?
Had a similar issue due to Rider importing settings from Visual Studio on the first run. Resolved it by changing the Keymap (Rider->Preferences->Keymap->Keymap drop down) back to the default one (IntelliJ).
In our case it was really an old SonarLint plugin. Check in Settings / Plugins. After the update the problem was solved.
I was having the same problem and going to File -> Reapair IDE... fixed it for me.

How to edit and debug OAF java code in IntelliJ IDEA

I agree that JDeveloper provides some unique ADF-specific functionality, but when it comes to work with java code, IntelliJ IDEA works better for me. Can I move java-related operations to IDEA?
Setup
Create IDEA project from existing sources, setup source folders and connect libraries.
Setup IDEA run configuration. "Listen to remote JWM" means that IDEA will act as a server and Jdev will connect to it as soon as it starts running. It is good if you need to debug processRequest() method - debugger must be connected immediately. I chose "JDK 1.4.x" because it looks closer to VM parameters which Jdev uses when it starts debugging (you can look at those is Jdev log while debugging).
Setup Jdev as a client. Append VM options from IDEA to your existing options.
Running
To start debugging, first, run IDEA run configuration with green bug button, and second, run Jdev with green play button.

Macro to run specific Run configuration

I have several Run configuration's in PyCharm:
one is for celery
second is for restarting rabbit
third is for main script run
Do not ask me why I need these configurations, I just want to use 3 shortcuts to run three Run configuration's separately.
So I decided to create macros for each one. But macro does not record choosing specific Run configuration.
Any ideas?
Macro
Open the run configurations menu (F10 in my setup)
Type the name of the config to run
Press enter
Bug on Mac OS
Not sure who could be impacted, but I ran into an annoying bug on the old macbook I'm hanging on to: Pycharm correctly receives each key at recording time (as can be seen in the macro window). But when replaying, instead of inputing the chars it seems to 'type' using my keyboard layout (BÉPO, french), using QWERTY locations !
Workaround:
Switch your computer to QWERTY
Run the macro recording
Type the config name as with your usual keyboard
Press enter (although the run config window will probably no longer be showing anything)
Stop recording
Switch back to your usual keyboard
For my example, my working macro is saying Typing: "ka;iqrc" !
I've created plugin to be able to use shortcuts to execute Run/Debug Configurations: Run Configuration as Action.
After loading of this plugin it register all Run/Debug configurations as actions. So you can assign shortcut for them, add them to toolbars, etc.
It works for all Jetbrains IDEs based on IntelliJ platform: CLion, PyCharm, PhpStorm, etc.

Android Studio (Intellij Idea) - run/debug configuration - remembering which device to run on

I guess this is a bit of a longshot, but with Eclipse, if you were using an Android emulator which was not the included one (for example, VirtualBox), you could select it the first time you ran your program, and tick a checkbox saying "Use this device for future launches". But the same option does not exist in Android Studio (Intellij Idea), meaning you have to choose the emulator every time you want to run the program.
I'm wondering if anyone knows of any way I can hack this so it will always run on a particular emulator which is not the built-in emulator. Can I put the emulator's ip address and port into a config file somewhere so the program will always launch on it without me having to click? I know it's a small thing but it's just convenience.
Sure it does, click the dropdown next to the run config, and press "Edit Configurations"
You can then select an Emulator, A Device, or to ask you when you run the app (like you have now).
The correct answer is to select USB device as the default. The program will then automatically run on the connected Virtualbox emulator. The answer was provided by sasha_trn in this comment

Eclipse Plugin to "Open Explorer in this File location" for Package Explorer

Is there any plugin that lets me open the file I selected in the Package Explorer in windows explorer?
I am looking for an extra menu option in the right click menu of the package explorer.
Since Eclipse 4.4 (Luna) there is a Show in System Explorer command available from the context menu.
The Show In menu is also accessible through Alt+Shift+W on Linux/Windows and Alt+Cmd+W on macOS.
While there is a default setting that is suitable in most cases, the command for launching the system explorer can be configured on the General > Workspace preference page.
Hmmm... Looks like we all have this problem.
You can use this plugin to do exactly that and a bit more...
Sorry for self advertising... But I think this is what you are looking for!
I'm using StartExplorer for several years now. It's easy to use, is up-to-date and does simply, what you are expecting from it. You can install it through
Help > Eclipse Marketplace...
Usage:
If you can live without the context menu, you can even get this without any additional plugin, using just a launch configuration on the active selection.
I'm not sure if there's a direct way, but what you can do is right click on the file/folder, go to properties, then copy "Location" and put that string into a blank explorer window.
so,
right-click --> properties --> Location --> ctrl-c
open explorer window --> ctrl-v --> go button
You might want to have a look at http://marketplace.eclipse.org/content/eexplorer
keeps windows explorer in sync without the need to sync manually via context menu
less explorer windows -> less clutter
possibility to pop out native explorer
keyboard short cuts
:-)
Here's a simple plugin with just shell & file explorer
http://marketplace.eclipse.org/content/open-here-eclipse