What are the roles of WebStorm and IntelliJ? - intellij-idea

I want to create a web (frontend and backend) and I want to use JetBrains. Should I use WebStorm for frontend and IntelliJ for backend? Or should I have the whole code in just one IDE, and which one would that be?
I still don't understand how to use them properly, how the code of a website would be divided in the different IDEs.

Related

How can I run .http files without IntelliJ?

IntelliJ and VS Code support a "editor-based REST client" that allows you to write and save HTTP requests in a file and execute them (example).
I think it would be a good idea to include something like this in a project for a REST API so developers can see various endpoints and test them without leaving the editor, but I don't want to tie them to a specific IDE.
Is it possible to run .http files without requiring my team members adopt IntelliJ or VSCode?
If you are using VS Code you can use httpYAC. It is compatible with the IntelliJ http-Client.
You can try restcli:
https://github.com/restcli/restcli
A missing commandline application for execute IntelliJ HTTP Client file.

Typescript files show errors in IntelliJ IDEA Community Edition

I am facing issue with TypeScript in IntelliJ IDEA Community Edition. Earlier I have used IntelliJ IDEA Ultimate Edition for Angular 2 development and it works fine.
This is the error I am getting in my .ts file. Plus there is no intelliSense. Is this feature unavailable in the Community Edition?
As zhengyue pointed out in comments, apparently you are using the "TypoScript" plugin, which is not a "Typescript" plugin.
I made the same mistake. And I also had the same problems that you experienced. Personally I thought it was the #Component decorator that messed things up. But it was zhengyue who pointed out I was using the wrong plugin.
The conclusion for me was that it was better to search for a good alternative. Because I still want to develop my back-end in Java, I wanted ...
something that integrates with IntelliJ as good as possible
but still something which is powerful.
At first I tried eclipse, and found powerful tools in their marketplace, which turned out to be commercial products and expired after 8 days.
Secondly, I downloaded "Visual Studio Code", (not to be confused with the full blown Visual Studio). It is FAST and user-friendly. It launches in less than 2 seconds on my system. And it has great plugins, which allow me to use code completion and refacturing tools. Here is the list of plugins I have installed:
As you can see, there is a plugin that makes you use the keybindings of intellij.
In IntelliJ I configured my ".ts" files to be handled as javascript files. Because it's better than nothing.
I work in IntelliJ all day when I'm working on the Java back-end, and thanks to the javascript features, I still have some (limited) code highlights for the Angular front-end as well. But, when I want to edit something in the front end, I use Visual Studio Code. To make this a smooth transition, I right-click inside the file and use an external tool configuration:
Inside my IntelliJ I configured the root of the angular project as a module. Then the configuration of this external tool looks like this:
This allows me to switch from IntelliJ to Visual Studio code in about 2 seconds, and immediately to the correct line in the correct file.
So, that's what my free Angular-with-Java-combo development workspace looks like.
JavaScript/TypeScript support and many other features are not available in the Community Edition.

How to make a ExternalSystemRunConfiguration of type Application, in IntelliJ plugin

So, I've been looking around for this for awhile, and since Jetbrains doesn't really document Plugin development for their IDEs, I just haven't been able to find the answer. I just need to figure out what I should be using in the constructor of ExternalSystemRunConfiguration if I'm making a Application run configuration Like this one
The "Application" run configuration is implemented by the ApplicationConfiguration class, not by ExternalSystemRunConfiguration.

Intellij / webstorm pointing to one project

I have a Play project. I use Intellij for the Java portion, but like to use Webstorm for the javascript part.
How can I do this ? Obviously right now, they keep overwriting the config file... :(
IntelliJ is perfectly capable of dealing nicely with JavaScript. Why do you need WebStorm? I'd recommend that you manage both the Java and web parts of your application in IntelliJ. I believe Play support is available, too:
http://www.jetbrains.com/idea/webhelp/play!.html
IntelliJ IDEA contains all the WebStorm features, these products are not designed to be used together, on the same machine and on the same project at the same time.

How to write an IntelliJ IDEA Plugin?

IDEA has many plugins to use. I.e. IDEtalk is one of them which I use. How can I code a simple plugin that just connects to Internet and shows a web page? (no need for an address bar but it is not a problem to be). I want my plugin's shortcut's button locate at my IDE as like IDEtalk, Commander, Maven Projects etc.
Any ideas?
Check the documentation and the source code of the other plug-ins available in the public git repository of the Community Edition.
There is a Creating Your First Plugin guide on JetBrains web site. It covers all the needed steps from plugin creation to deployment to the plugin repository.
You might also want take a look in the source code of a simple plugin like Twitter Integration Plugin which I recently implemented. Or check a more complex one like this one.