question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IntelliJ/ AS-Plugin configuration via a file

See original GitHub issue

IntelliJ Plugin understanding

As I understand it by looking through the code, when using the IntelliJ/ AS-Plugin there are 4 code options to be selected to re-format my code. If I were to configure the line length to 120 in the gradle plugin, the IntelliJ/ AS-Plugin would reformat differently and I would have to call ktfmtFormat by hand in order to passe the quality gate set by ktfmtCheck.

Feature Request

In order to sync the IntelliJ/ AS-Plugin with the Gradle-settings I would like to introduce a Gradle-task, which will write a File with all set settings. In turn this file can be checked in and loaded by the IntelliJ/ AS-Plugin. This will ensure that Gradle and IntelliJ/ AS will format in the same way.

If the authors of this tool see it as a beneficial addition, I would try to implement it in the Gradle and IntelliJ/ AS-Plugin.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cortinicocommented, Aug 1, 2021

I’m a bit torn on this, because ktfmt is not configurable on purpose. We do support the “default” format (used internally at Facebook) and “google” format (used internally at Google and possibly others), and these are thoroughly tested and the tests maintained.

Makes sense 👍 Then @SergejIsbrecht probably the safest approach for you would be to setup your own machinery to share some config, perhaps using environment variables or .properties files.

0reactions
SergejIsbrechtcommented, Aug 1, 2021

@cortinico,

setup your own machinery to share some config, perhaps using environment variables or .properties files.

I can do that, but how will the AS-Plugin know which file to load? I may as well fork the AS-Plugin, but I actually do not want to cherry-pick the changes from main-line to my fork.

I think it is quite strange that the Gradle-Plugin (max line len) is configurable but the AS-Plugin is not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugin Configuration File | IntelliJ Platform Plugin SDK
The plugin.xml configuration file contains all the information about the plugin, which is displayed in the plugins settings dialog, ...
Read more >
IntelliJ IDEA plugin to fold .conf files? - Stack Overflow
To install, click the Get button from the above JetBrains Marketplace link. Or, from within IntelliJ, go to Settings/Preferences ( Ctrl + Alt...
Read more >
dubreuia/intellij-plugin-save-actions - GitHub
The configurations are located in "File > Settings > Other Settings > Save Actions". Activation. You can quickly toggle the plugin activation by...
Read more >
Editor integration - Black 22.12.0 documentation
Install Black with the d extra. $ pip install 'black[d]'. Install BlackConnect IntelliJ IDEs plugin. Open plugin configuration in PyCharm/IntelliJ IDEA.
Read more >
Asciidoctor Config File - IntelliJ AsciiDoc Plugin
To provide a common set of variables when rendering the preview, the plugin reads an .asciidoctorconfig configuration file. Use this to optimize the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found