Questions tagged [intellij-plugin]

Plugin Development for IntelliJ-based IDEs

The IntelliJ Platform SDK is an OSS platform developed by JetBrains for creating language-aware developer tools, plugins, and custom IDEs.

The API provides support for custom languages and frameworks, including syntax highlighting, navigation, code completion, inspections, intentions, refactorings, a debugger, test runners, tool windows, actions, and more, as well as general lexers and parsers.

Resources:

1290 questions
8
votes
1 answer

BNF Rule Syntax Highlighting for Custom Language

I'm trying to develop a custom language plugin for IntelliJ using the Grammar-Kit plugin. I am easily able to provide syntax highlighting for tokens defined, but I cannot figure out how to highlight at the element or token-parent level. Here's a…
pyrospade
  • 7,870
  • 4
  • 36
  • 52
8
votes
1 answer

Adding custom code generator

When I work with certain types of files, such as: Java file, HTML file or Jasmine Test file I can generate some useful code snippets using Code > Generate option, for example: if I am working with Java file Code > Generate allows me to insert…
pawluch4
  • 123
  • 1
  • 4
7
votes
0 answers

Remote debugging of Docker containers using IntelliJ

I have a number of Docker containers (10) each running a Java service that makes up my system. To create these containers I use a couple of docker-compose files. Using the Docker Integration plugin for IntelliJ, I can now spool up these services…
7
votes
1 answer

Where do I need to put the UI initialization code in an IntelliJ Idea plugin?

I want to create a plugin for IntelliJ Idea, which puts a little button into the status bar. AFAIK the code for this must look like this: final StatusBar statusBar = WindowManager.getInstance().getStatusBar(project); final StatusBarWidget widget =…
user6909438
7
votes
2 answers

How do I swagger generate Kotlin?

I'm trying to generate kotlin code from a swagger json file, and I can't figure out the command-line parameters that should be used. I've tried Swagger codegen v2.3.1 and v2.2.3 and both fail for kotlin, kotlin-client, and kotlin-server with the…
John Kaster
  • 2,509
  • 1
  • 33
  • 40
7
votes
1 answer

Soot: Reload class after source-file changed

I'm writing an IntelliJ-Plugin to analyse java-program code. Thus i use Soot to write static analyses. Every time a user triggers the analyse-action of my plugin, I take the current VirtualFile of the current context like this: …
osanger
  • 2,276
  • 3
  • 28
  • 35
7
votes
0 answers

Convert my .g4 to .flex and .bnf for IDEA syntax highlighter

I have never used JFlex before, and I have no idea how it works. Basically, I've built a runtime for a scheme-esque language in Java, and the parser I have for it was generated using Antlr 4, so I have a .g4 file, which looks like this: program:…
michaelsnowden
  • 6,031
  • 2
  • 38
  • 83
7
votes
0 answers

Apple Magic Mouse + IntelliJ IDEA integration

I'm using Apple magic mouse + IntelliJ IDEA and I would be happy to map some multi-touches to actions, for instance - go back (Ctrl + Alt + left) etc. Has someone solved this problem?
Andrey Yaskulsky
  • 2,458
  • 9
  • 39
  • 81
7
votes
2 answers

What scala version Intellij Idea scala plugin uses?

I have en error with java annotation on scala enums. This scala bug seems to be fixed, but Inteliij Idea shows an error. So how I can ensure that intellij Idea scala plugin uses actual scala version?
Cherry
  • 31,309
  • 66
  • 224
  • 364
7
votes
1 answer

How can I create custom Live Templates with an Intellij plugin

I want to create a custom Live Template that will be available with my plugin. I know how to create custom Live Templates using the Settings dialog, but I want to be able to distribute the Live Template as part of my plugin: How is the Live…
SimpleSam5
  • 3,280
  • 2
  • 16
  • 13
7
votes
3 answers

Intellij IDEA plugin - PersistentStateComponent loadState not called

I am trying to develop a plugin for Intellij IDEA, I am working with SDK 129.451. The issue I have is that I can't persist the user data like some list items he can input in the plugin and have the data back after the IDE restarts.. I am using…
Cata
  • 11,133
  • 11
  • 65
  • 86
7
votes
1 answer

How to enable spellchecking for custom language plugins in IDEA?

IntelliJ spellchecking appears to be disabled for certain custom language plugins such as Markdown (extension ".md") and the Non-Dairy Soy Plugin (extension ".soy") even with the Spelling | Typo inspection options enabled: Process Code Process…
6
votes
1 answer

Retrieve Inheritance class full name from Kotlin Psi API

I’m trying to develop a codegen IDEA-Plugin. This plugin should analyze KtClass Inheritance and get all inheritance class full name (like com.example.config.TestConfig) I have tried to find any useful information by viewing PsiViewer. I find that…
ZSpirytus
  • 339
  • 2
  • 10
6
votes
1 answer

Text Field with Standard PsiElement Auto Completion in IntelliJ Plugin

I'm trying to create a simple text field with auto completion for my IntelliJ plugin. I think this should be pretty simple but so far I've run into dead ends... E.g. this should work as far as I understand: EditorTextField format = new…
Shai Almog
  • 51,749
  • 5
  • 35
  • 65
6
votes
2 answers

Intellij: how to convert indents for all files

I know how to convert indent for a single file. I go to edit -> convert indent -> space/tab. But I want to do this for all files under a directory. I try click on a directory and then go to edit -> convert indent, but the options are grayed out.
user2628641
  • 2,035
  • 4
  • 29
  • 45