Archive for the 'IntelliJ' Category

February 17th, 2022
7:06 pm
Adding Bitbucket Authentication to Webstorm

Posted under IntelliJ
Tags

I had to do this again for a new Windows 10 installation and had forgotten all the details, so am recording it here to save searching it out next time. Actually the help on Bitbucket covered it well.

1/ My preferred way to authenticate with Bitbucket is to use an ssh keypair, which is set up with ssh-keygen

2/ Follow the instructions on bitbucket hereIn my case, I used the defaults for everything including the file location, and did not use a pass phrase. Per the instructions, as I was using Windows 10, ssh-keygen ran fine direct from a command prompt with no issues, rather than needing a git bash prompt.

3/ As per the instructions, I added the public key to bitbucket.

4/ I added the SSH configuration to Webstorm under File/settings/Tools/SSH Configurations. The host was bitbucket.org with the default port. The user was the bitbucket username. I picked key pair as the authentication method, and webstorm already had the correct default location for the ssh private key file. I left the passphrase empty, and hit test connection – this worked ok, so I saved the settings.

5/ When I did my first commit/push, webstorm requested a git user and email so that the change would be tagged correctly – note that this is not an authentication username, so I just used my standard abbreviation that I use with source control.

Following this, commit and push worked fine.

 

 

Comments Off on Adding Bitbucket Authentication to Webstorm

March 11th, 2017
12:08 pm
WebStorm/IntelliJ–Performance Problems/tweaking the IDE

Posted under IntelliJ & WebStorm
Tags ,

I hit issues with Webstorm, pregnant pauses and hanging for a few seconds.

The following points/posts offer help on tweaking:-

  1. Firstly it helps to see current VM usage. This is not on by default but if you tick Show Memory Indicator in Settings/Preference/Appearance it will then show at the bottom right of the status bar.
  2. VM can be tuned by editing the VM options as per this post here, but note that bigger is not necessarily better. Some of the hanging can be caused by excessive Garbage Collection when too much memory has to be GCd in one go. This post here goes into this. The tuning process can be informed by checking the memory indicator to see what you actually use.
  3. Excluding unwanted directories from indexing is important – see this post for details on doing this.

No Comments »