code-formatting Questions

9

Solved

I am rather new to VIM. I got some source code and this is a mess. At a first sight I would like at least to get a clear and organised view of the code, so I like to get it rightly formatted, I mea...
Clerc asked 24/3, 2010 at 10:15

3

Solved

I'm currently writing a lot of async library code, and I'm aware of the practice of adding ConfigureAwait(false) after each async call so as to avoid marshalling the continuation code back to the o...
Libove asked 24/11, 2014 at 16:18

2

Is there a program, a utility, or some programmatic library, preferably for Linux, that takes an unformatted SQL string and pretty prints it? For example, I would like the following select * ...
Goldiegoldilocks asked 24/12, 2008 at 18:35

1

Basically I want different styles depending on annotation count, e.g. class Foo { @Autowire private MyService myService; @Autowire private MyOtherService service; ... } but if I have more a...
Crab asked 10/11, 2014 at 18:42

9

Solved

I'm interested in learning about the available choices of high-quality, stand-alone source code formatters for Java. The formatter must be stand-alone, that is, it must support a "batch" mod...
Knighton asked 15/6, 2009 at 15:7

3

Solved

I've been using Visual Studio as my main IDE for a while now (I still use Emacs for some personal projects, though). I like the way Emacs formats C/C++ code and I'd like to convince Visual Studio ...
Ajit asked 14/11, 2008 at 7:51

2

Solved

Historically, I like to break expressions so that the "it's clearly incomplete" bias is shown on the continued line: var something = foo + bar + baz(mumble); This is an attitude that comes from...
Heterography asked 21/7, 2014 at 5:22

5

Solved

I don't like asking this question but I have honestly been looking for a way to figure this out for a very long time. This is a simple question. I have been using NetBeans for a long time, but rec...
Lawsuit asked 23/10, 2012 at 17:32

3

Solved

How can I set my Eclipse's code formatter to allow code rows longer than 80 characters. I know that very long lines is hard to read but in my opinion 80 characters per line is very small value for ...
Constitute asked 24/11, 2009 at 13:52

3

Solved

Every time I have array initialization and try to format the code by pressing CTRL+K and CTRL+D, the code indent doesn't get formatted automatically. Sample code. var users = new[] { new User(),...
Zitazitah asked 6/8, 2014 at 16:48

1

When I write an MSpec context like this: [Subject(typeof(TheType), "Concern")] internal class when_this_test_is_run { Establish context = () => { // some code... }; Because of = () =>...
Selfacting asked 20/7, 2014 at 22:9

5

In Eclipse, is there an automatic way to convert this: int myX, myY, myZ; ... to this... int myX; int myY; int myZ; I thought I could do this from the 'Clean Up' and 'Members Sort Order' pref...
Mongeau asked 12/3, 2014 at 18:2

3

Solved

I really like my Perl code formatted - lines indented, etc. The problem is I hate doing it myself, and I really enjoy auto-formatters that do this automatically for you. I work with Eclipse and th...
Bly asked 16/9, 2010 at 6:39

3

Solved

I've read several posts on this topic here, but I'm still uncertain how I should handle this issue. In truth, the lines are in the source code much longer e.g. console.log("html : "+"<li...
Derris asked 14/7, 2014 at 9:7

3

Preferences -> Java -> Editors -> Save Actions Check "Perform the selected actions on save", then check "Additional actions" and click the "Configure.." button. In the "Code organizing" tab, check ...
Tetzel asked 26/1, 2012 at 13:54

9

Solved

I'm looking for a tool that works on Windows to reformat some C++ code in my codebase. Essentially, I've got some code I wrote a while ago that I'd like to use, but it doesn't match the style...
Ignatzia asked 17/3, 2010 at 16:19

2

Similar questions have been asked before, but they didn't help me with what I'd like to do: I want to re-format existing Objective-C code (several hundred files). For pure Apple-style formatting, ...
Spitzer asked 14/5, 2014 at 12:51

1

Solved

Is there a straightforward way to configure Perl::Tidy so that it handles correctly custom keywords created with Devel::Declare? Specifically, I am using Sub::Curried, which creates a keyword curr...
Divot asked 23/5, 2014 at 18:2

1

Solved

we can have an autocomplete in PHP Editors for a class like: <?php /** * Class Controller * @property foo foo */ class Controller { public function bar() { $this->foo-> // autocomple...
Koziol asked 12/5, 2014 at 9:48

4

When I highlight a block of text in Eclipse, and press TAB, it inserts a tab at the head of each line. I want it to insert 4 spaces instead. I need to do this on a files with a custom extension: *...
Aloeswood asked 25/1, 2012 at 19:26

3

Solved

How to do the opposit of indenting chunk of code in Netbeans? Indenting multiple lines of code, I can select and use Tab key to achieve. How can I do the reverse of this quickly, not by doing it...
Pomp asked 25/10, 2012 at 4:9

3

Solved

I'm using Counterclockwise but unfortunately they haven't implemented this functionality yet. Do you have any ideas how can I format my Clojure code automatically in the "lispy" way?
Cobra asked 24/4, 2012 at 17:59

2

Solved

How to format JSF code in eclipse? I already try as the following : Format XML code in Eclipse My XML Editor Configuration Setting is : Line width 120 Split multiple attributes each on a ne...
Lowpressure asked 3/3, 2014 at 5:25

1

I was wondering if it is possible to change the auto-formatting in Android Studio in such a way that braces for anonymous classes are placed on the same line while still putting braces for regular ...

2

Solved

Is there a function (and shortcut) to reformat code in Notepad++ Like CTRL+SHIFT+F in Eclipse?
Curvy asked 16/11, 2011 at 11:51

© 2022 - 2024 — McMap. All rights reserved.