code-formatting Questions

1

Has anyone got any tricks for undoing long-line wrapping? I've got a big chunk of code that has been reflowed to 120 columns and it's a minefield to debug effectively. Edit0: I didn't do the refl...
Hyatt asked 10/2, 2014 at 10:42

2

Is there a plugin, or setting in Sublime Text that will enable project-level code formatting and application of the .EditorConfig plugin? I'm wondering specifically about manual application of .e...
Gaberlunzie asked 5/2, 2014 at 20:1

4

Solved

I used to write data A = A { a :: Double } deriving(Eq, Show) but now i prefer data A = A { a :: Double } deriving(Eq, Show) I think the answer will be no, but i ask anyway: is there a c...
Triatomic asked 29/7, 2011 at 7:54

3

I am working with Java. If I hit Ctrl+Shift+F in Eclipse Helios, it will auto format the entire file instead of the lines I edited. This becomes a nightmare at the time of check in when someone els...
Irritant asked 5/9, 2013 at 18:24

1

I have been looking around the web for a good Sublime (3) package to use to auto-format my source code in various languages, namely JavaScript. I came across this SOF post (Sublime Text 2: Auto fix...

3

Solved

I want to make emacs indent ruby method calls like: foo( :blah => 'bar', :shibby => 'baz' ) The closest I can get is: foo( :blah => 'bar', :shibby => 'baz' ) This is using ru...
Rosamariarosamond asked 1/11, 2011 at 1:14

17

Solved

Are there any command line scripts and/or online tools that can reverse the effects of minification similar to how Tidy can clean up horrific HTML? (I'm specifically looking to unminify a mi...
Revkah asked 4/5, 2009 at 21:20

1

Solved

As you may know, Eclips lets you disable the code formatter for certain sections of source code (see for example this question). Now, my problem is, that the formatter apparently stops formatting ...
Rousseau asked 16/10, 2013 at 9:3

1

The problem is the following: the codebase have many files with multiple blocks compiled conditionally for each of target platforms using the #if defined(...) directive. Since the typical programme...
Egghead asked 16/6, 2010 at 12:11

10

Solved

I am looking for a (preferably) command-line tool that can reformat the C# source code on a directory tree. Ideally, I should be able to customize the formatting. Bonus points if the tool can...
Daph asked 26/8, 2008 at 2:4

4

The eclipse code formatter adds a trailing space in each empty Javadoc comment line (see screenshot). The formatter of a colleague is always removing those spaces (and thus producing annoying S...
Convalescence asked 10/8, 2011 at 9:9

2

I've been learning Slim lately and I was wondering if there's a way to format or beautify my code in it. I have been wary of using newlines(pressing Enter) because it causes errors. The reason I w...
Kibosh asked 21/3, 2013 at 3:57

1

Solved

I've recently started working with an API that uses a "fluent interface". I'm struggling to find how to configure the Eclipse code formatter to support this properly. What I want to get is t...
Noncontributory asked 19/8, 2013 at 22:17

1

Solved

I'm looking at the options in IntelliJ IDEA 12 and I can't let this go. So please help me stop wasting time on it. This is some code from my Build.scala: val logging = Seq( "ch.qos.logback" % "...
Andee asked 4/6, 2013 at 8:40

1

Solved

Intellij keeps on formatting my strings like this, its annoying... How do I fix it so the lines all line up? PreparedStatement p = s.prepare( "select distinct resource, uid, role " + &q...

1

I am using Visual Studio 2012 for developing C++ code. I am used to format my code as follows: void SomeThing::DoesSomething() { // brilliant code } However, when using VS2012 code formatter,...
Conley asked 27/5, 2013 at 9:32

1

I'm using VS 2010 + resharper, and i'm tired reformatting bracket indentation in code as i want it. As example if i have code like: operators.Keys .ToList() .ForEach(k => filters .AddRange(C...

2

The default code formatting for JavaScript in Visual Studio 2012 does this with for loops: for (var a = b; a < c; a++) { } for (var a = b() ; a < c; a++) { } for (var a = b; a < c() ; a++...

1

Solved

I am using Intellij-IDEA 12. Most of team mates use Eclipse and while saving it sorts members automatically first based on Visibility and then Alphabetically. I want to mimic the same functionality...
Daliladalis asked 2/7, 2013 at 20:41

2

Solved

How can one format django template in Sublime Text. My template consists of: HTML (django template language with {{ variable }} and {% stuff %}) javascript Is there a way to get same kind of ...
Balough asked 20/6, 2013 at 16:15

4

Solved

I wonder how can I format my code to align it neatly? Does it have a feature similar to Eclipse's ctrlshiftf?
Massachusetts asked 1/7, 2011 at 2:28

2

Solved

I got used to use Ctrl+k, Ctrl+d for formatting whole document while in Visual Studio 2010 C# but when I changed C++ I realise that it's no longer available. To format the document I have to sele...
Scurrility asked 11/1, 2012 at 0:29

7

Solved

I've been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for JavaScript. I have found several related tools, such as sy...
Hydranth asked 8/12, 2008 at 23:11

4

Solved

It's a best-practice question. There are obvious ways to do that, none of them just seem quite right. Quite often I need to test that some multi-line string gets produced. This normally brea...
Velma asked 28/7, 2010 at 7:13

1

Solved

As the title says, I want to format only selected lines of code. I know by pressing Ctrl + Shift +F formats whole file. Formatting whole file is not good options as it will create lots of conflic...
Fauch asked 17/4, 2013 at 7:53

© 2022 - 2024 — McMap. All rights reserved.