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.

Reformat code as part of the "normal" Intellij flow

See original GitHub issue

Hello,

First of all this plugin is really nice, thanks alot for it!

While using it I was quite surprised that the default Reformat code shortcut did nothing. After some fiddling I found out the Haskell reformat is actually in Code / Haskell / Reformat XXX and not the standard Code / Reformat code menu.

Is there any reason stylish and/or hindent are not plugged on the “normal” Code / Reformat code menu? This would mean 1 shortcut no matter the language (we use several languages in my project), and more importantly, this would allow us to use the extremely useful Reformat code checkbox when committing with Intellij (everybody does that in the team so that we never have to worry about code style).

That would be awesome 😄

Also, it seems we can’t assign the same shortcut to both Code / Reformat code and Code / Haskell / Reformat XXX so it’s not even possible to use the same shortcut for Haskell and non-Haskell projects.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
rikvdkleijcommented, Aug 17, 2018

Did you change something about the shortcut? Now the default one (Ctrl + Alt + L on Windows) works!

Yes, I changed the way it overrides the default and appears to help in your case 😄

Hopefully all the other features also work like a charm 😉

0reactions
sir4ur0ncommented, Aug 16, 2018

Beta 23 just tested.

Did you change something about the shortcut? Now the default one (Ctrl + Alt + L on Windows) works!

And I confirm the “Haskell reformat code” works like a charm too. Thanks a lot for the effort, it’s appreciated!

This is yet another step into making Haskell adoption a lot easier 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reformat File - IntelliJ IDEA Guide - JetBrains
Sometimes code formatting can get out of sync, but there's an easy fix in IntelliJ IDEA. You can use ⌘⌥L (macOS), or Ctrl+Alt+L...
Read more >
How can we generate flow chart diagram in IntelliJ IDEA from ...
It generates simple sequence diagrams which are a visible representation of code flows (via the method calls). As for flow charts specifically ( ......
Read more >
IntelliJ IDEA Editor Settings | Contributing to Projects - Vaadin
This page describes the noticeable changes made to the default code formatting settings in IntelliJ IDEA. This is also a chance to review...
Read more >
Coding conventions | Kotlin
Two most popular IDEs for Kotlin - IntelliJ IDEA and Android Studio provide ... You can configure them to automatically format your code...
Read more >
Meet Android Studio | Android Developers
On top of IntelliJ's powerful code editor and developer tools, ... The Android Studio main window is made up of several logical areas...
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