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.

Created new class isn't formatted.

See original GitHub issue
namespace 1_WinxProduction.Editor { public class MyClass { }
}

instead:

namespace 1_WinxProduction.Editor { 
    public class MyClass { 
  }
}

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
winxalexcommented, Mar 31, 2016

Namespace generation for Unity project isn’t correct, and I need to fix in manually beside formatting. For “Editor” should not go from root folder by find all “Editor” folder and namespace goes from there down. namespace 1_WinxProduction.Editor.ws { public class MyClass { } }

should be namespace ws { public class MyClass { } } where hierachy is “Assets/1_WinxProduction/Editor” With the runtime scripts is even more complex they can be in “Scripts” folders or/and everywhere If I uncheck “Reformat according to style” (First how to select style there are Default and Project) formatting is ok.

1reaction
VISTALLcommented, Mar 31, 2016

As i saw - you dont use any codestyle ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why am i getting error for .format? JAVA FILES - Stack Overflow
This probably means that your IDE/compiler is set up wrong. Open your project's settings and look for target compatibility, generated .class ...
Read more >
What to do? That class code is the correct format, but your ...
That class code is the correct format, but your current account does not have access. i need help accesing the classroom. Keep getting...
Read more >
Disabling "smart formatting" of HTML class attribute #10918
I'm not familiar with how prettier works under the hood, ... I htink it started in Format value of HTML class attribute #7555...
Read more >
Format (Java Platform SE 7 ) - Oracle Help Center
Format is an abstract base class for formatting locale-sensitive information such as dates, messages, and numbers. Format defines the programming interface ...
Read more >
109926 – [formatter] Annotation not formatted propertly - Bugs
Action doesn't exist for a particular class method, I created it new along with the list of name-value pairs. @Wpa.Action(forwardConfigs = {@Wpa.
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