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.

Confirm project formatting settings

See original GitHub issue

Follow-up from https://github.com/flutter/flutter-intellij/pull/2439#discussion_r198508474.

@quangson91 and I differ on how auto-format treats:

        for (String s : new ArrayList<String>()) {

        }

Could someone chime in with there results?

/cc @scheglov @devoncarew @stevemessick @jacob314

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
stevemessickcommented, Jun 27, 2018

I’m using Android Studio developer settings. It adds the space before the colon if I delete it. I’m pretty sure I have always (since Eclipse days) put a space before and after the colon in for-each statements. Sorry, but I don’t currently have the Flutter or Dart projects configured to easily check the formats they use. Also see: https://google.github.io/styleguide/javaguide.html#s4.6-whitespace

0reactions
pqcommented, Jun 27, 2018

Aha! That must be it. I’m on EAP 2018.2 and I’m guessing it’s a new setting that defaults to false. Thanks for tracking that down!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Code style schemes | IntelliJ IDEA Documentation - JetBrains
To configure a scheme for new projects, go to File | New Projects Setup | Settings/Preferences for New Projects | Editor | Code...
Read more >
Identify the project format | Microsoft Learn
Check the project format in Visual Studio · Right-click the project in Solution Explorer and select Edit myprojectname.csproj. · From the Project ......
Read more >
How to enforce a consistent coding style in your projects
The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to ......
Read more >
Java formatting and linting - Visual Studio Code
Language Support for Java™ by Red Hat also provides formatting settings. ... (Google's or Sun's Check) or your own customized files for your...
Read more >
Working with Project Settings in the AWS Cloud9 Integrated ...
Code and formatting behaviors for programming languages such as JavaScript, PHP, Python, and Go. The types of configurations to use when running and...
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