intellij-plugin

How do I “register” a new Module Type in an IntelliJ Plugin?

纵饮孤独 提交于 2019-12-04 17:49:27
问题 I am a beginner when it comes to IntelliJ plugin development but i want my plugin to register a new Module Type in the "New Project" / "New Module" windows. I already searched through the Documentation for plugin developers but wasn't able to find anything useful. I also looked at existing plugins like Kotlin and Scala which also add new Module types but I can't figure out how to get a finished ModuleType to show up in the dialogs mentioned above. What do I have to change in the plugin.xml

How do you set a value in the IntelliJ Registry?

亡梦爱人 提交于 2019-12-04 17:27:08
问题 How can I override a value that is used internally in IntelliJ, for example this expression: Registry.intValue("a.b.c") I can access the registry Registry.getInstance() but it doesn't allow updating any key/value pairs. Any tips? 回答1: Press Ctrl - Alt - Shift - / and select "Registry" from the menu that appears. 回答2: If you are using OS X, you can open the registry by typing 'cmd + shift + A'. Type 'registry' and change the value of the option you're looking for. In this source you can see an

IntelliJ bad plugin how to start

让人想犯罪 __ 提交于 2019-12-04 16:13:31
问题 Hi I have just started using IntelliJ again and have version 9. I just installed the Mercurial plugin and now the ide won't start anymore. Has an error of Fatal error initializing class com.intellij.openapi.actionSystem.ActionManager: java.lang.VerifyError: class com.dcx.hg.MercurialVcs overrides final method getName.()Ljava/lang/String; I now know that I should be using the plugin hg4idea Is there a way I can remove this plugin so I can start the ide, I am sure there must be.. Thanks in

Enable Annotation processors by default

喜你入骨 提交于 2019-12-03 23:39:28
问题 How can I configure IntelliJ IDEA to have Annotation processors enabled by default? Currently, I have to enable it manually for every imported project. 回答1: File | Other Settings | Default Settings , navigate to the compiler settings, annotation processing and enable this option before importing the project. 来源: https://stackoverflow.com/questions/44452482/enable-annotation-processors-by-default

IntelliJ IDEA plugin development: how to modify the Psi tree?

走远了吗. 提交于 2019-12-03 21:30:01
问题 I would like to know what the "proper" way to create new PsiElement instances and add them to the Psi tree is. I looked at the tutorial provided by JetBrains (http://www.jetbrains.org/intellij/sdk/docs/tutorials/custom_language_support/quick_fix.html). The method they use there seems suitable for the simple properties language they introduce but I don't think it's the way to go with a more complicated syntax, where I want to add a child PsiElement that cannot appear at the root level of a

How do I “register” a new Module Type in an IntelliJ Plugin?

爷,独闯天下 提交于 2019-12-03 11:45:43
I am a beginner when it comes to IntelliJ plugin development but i want my plugin to register a new Module Type in the "New Project" / "New Module" windows. I already searched through the Documentation for plugin developers but wasn't able to find anything useful. I also looked at existing plugins like Kotlin and Scala which also add new Module types but I can't figure out how to get a finished ModuleType to show up in the dialogs mentioned above. What do I have to change in the plugin.xml file? I already added extensions and created java classes for ModuleType, ModuleBuilder and the

How do you set a value in the IntelliJ Registry?

£可爱£侵袭症+ 提交于 2019-12-03 10:29:12
How can I override a value that is used internally in IntelliJ, for example this expression: Registry.intValue("a.b.c") I can access the registry Registry.getInstance() but it doesn't allow updating any key/value pairs. Any tips? yole Press Ctrl - Alt - Shift - / and select "Registry" from the menu that appears. If you are using OS X, you can open the registry by typing 'cmd + shift + A'. Type 'registry' and change the value of the option you're looking for. In this source you can see an example. 来源: https://stackoverflow.com/questions/28415695/how-do-you-set-a-value-in-the-intellij-registry

Retrieving and setting split window settings for IntelliJ IDEA plugin development

谁都会走 提交于 2019-12-03 10:27:06
问题 I am writing an IntelliJ IDEA plugin for saving sessions of open tabs called Tab Session. This question is a follow-up of IntelliJ IDEA Plugin Development: Save groups of tabs, save them persistently and reload a set of tabs if requested by the user. Currently, splitted windows are not supported. Therefore i want to do two things: Retrieve information about all splitted or unsplitted windows that are containers for editor tabs. I need their position and split direction (horizontal or vertical

IntelliJ bad plugin how to start

我只是一个虾纸丫 提交于 2019-12-03 10:21:01
Hi I have just started using IntelliJ again and have version 9. I just installed the Mercurial plugin and now the ide won't start anymore. Has an error of Fatal error initializing class com.intellij.openapi.actionSystem.ActionManager: java.lang.VerifyError: class com.dcx.hg.MercurialVcs overrides final method getName.()Ljava/lang/String; I now know that I should be using the plugin hg4idea Is there a way I can remove this plugin so I can start the ide, I am sure there must be.. Thanks in advance. duffymo If you look in the directory where you installed IntelliJ, you'll see a /plugins directory

How to configure antlr4 plugin for Intellij IDEA

点点圈 提交于 2019-12-03 04:17:47
问题 I looked all over the place for how to configure the antlr4 plugin for IntelliJ IDEA. But I can't find anything. I was only able to install the plugin. If I add .g4 files manually for a empty project I get the "Generate ANTLR Recognizer" option in right click menu. That is all. I thought It was very promising plugin. Can anyone please tell/direct me how to proceed with the plugin ? Thank you 回答1: I installed the ANTLR plugin on IntelliJ 14 and was able to get it working. A couple little