code-formatting Questions

1

Solved

My team has a standard Eclipse code formatter profile. I prefer to work with VIm. Is there any way I can convert this file and use it with VIm?
Gounod asked 20/8, 2010 at 3:39

13

Solved

I don't know how to describe it, but I'm looking for a tool that makes suggestions to my code on how to be... more elegant. For example to make a nested if() statement a switch statement. so...
Couthie asked 25/8, 2010 at 7:7

4

Solved

Visual Studio 2008 got two great features for c#, which is called "sort using directives" and "remove unused using directives". I'd like to call the "sort using directives" every time I format the...

1

Solved

I have a variable that indicates the length of time the UI can be idle. I have elected to call this variable UITimer. I want to pass the variable into my classes constructor and then store it off i...
Roee asked 21/6, 2010 at 18:17

1

Solved

My task is - to create a model attribute by given request parameters, to validate it (in same method) and to give it whole to the View. I was given this example code: @Controller class PromotionC...
Mourant asked 16/6, 2010 at 11:18

1

Solved

I would like to align all C++ class member names ( do not confuse with member types ) in one column. Lets look at the example of what we have at entrance: class Foo { public: void method1( ); ...
Nuno asked 13/5, 2010 at 11:20

3

Solved

Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? I seem to remember seeing this option somewhere, but I can't find anything ab...
Fraunhofer asked 26/4, 2010 at 9:21

1

Solved

I do like the SQL editor now bundled with Eclipse but I can't seem to find a way for it to format my code like eclipse will with my java. Did I miss something, or does anybody have any alternativ...
Slowworm asked 12/2, 2010 at 19:46

1

Solved

Do you know of any "JSON Beautifier" for JavaScript? From {"name":"Steve","surname":"Jobs","company":"Apple"} To { &quo...
Nephrectomy asked 10/4, 2010 at 20:30

4

I have a codebase that is touched by many people. While most people make an effort to keep the code nicely formatted (e.g. consistent indentation and use of braces), some don't, and even thos...
Thirtytwo asked 14/3, 2010 at 11:5

1

Solved

Given the output of query: var queryResult = from o in objects where ... select new { FileName = o.File, Size = o.Size } What would you consider the neatest way to detect if a file is in ...
Roque asked 4/3, 2010 at 12:57

3

Solved

I was working on an ASP.NET MVC template today, and after staring at all those fluorescent yellow % tags for long enough, I basically decided I had had enough, so I painstakingly modified my ascx f...
Plebe asked 12/2, 2010 at 0:15

1

Solved

I like the feature in Visual Studio for formatting an HTML document (CTRL+K, CTRL+D). Is there a plugin with the same functionality in any other (free) editors, e.g. Notepad++?
Antione asked 30/11, 2009 at 16:22

2

Solved

I'm working on a code generation tool where the output is display in a tag and wondered if anyone knew of a CSS stylesheet that would format the output. My rendering engine is Javascript base...
Football asked 30/11, 2009 at 15:48

1

Does anyone know how to configure visual studio to correctly format code segments within a View This annoys the crap outta me!: <select> <% foreach(Height height in ViewData.Model.Height...
Moschatel asked 25/11, 2009 at 13:46

5

Solved

It looks like extra line breaks in the HTML code may add unwanted spaces in the final output. I always thought that no matter how I layout my HTML code, it will not affect the way the rendered resu...
Rappee asked 15/11, 2009 at 9:24

12

Solved

Our team has recently inherited code which is extremely disorganized. As a result, my team leader has decided to enforce a policy of auto-formating of code prior to saving a file. We have e...
Tetrapterous asked 4/11, 2009 at 14:44

26

Solved

After reading Hidden Features and Dark Corners of C++/STL on comp.lang.c++.moderated, I was completely surprised that the following snippet compiled and worked in both Visual Studio 2008 and G++ 4....
Strega asked 29/10, 2009 at 6:57

2

Solved

Is there a program which I can run like this: py2py.py < orig.py > smaller.py Where orig.py contains python source code with comments and doc strings, and smaller.py contains identic...
Stepson asked 25/10, 2009 at 17:43

1

Solved

I dislike how auto format messes up empty cycle body, like: Before for (int i = 0; isTest(i); i++); After for (int i = 0; isTest(i); i++) ; How to configure eclipse not to do this?
Sociability asked 8/9, 2009 at 8:38

4

I'm a big fan of documenting the proper behavior of IDE features that have a subtle but significant impact on coding flow - things like auto-completion selection and commenting/uncommenting code yo...
Formulism asked 23/8, 2009 at 16:41

3

Solved

I have to make a few changes to some unformatted HTML (no line breaks, nothing) and was wondering if there are any web-based or open source tools that will automatically format it so it's easier to...
Uriniferous asked 7/8, 2009 at 13:15

12

Solved

It's been a long running issue that I've come across in many-a-hot-and-steamy coding sessions. One person codes this way another codes that way. So after much push and pull I'm curious... Is there...
Exergue asked 15/2, 2009 at 4:29

1

Solved

Say if I have the following: func(arg1, arg2, arg3...) func(longargarg1, longerarg2, arg3,...) ... How do I align the arguments so that it's like following? func(arg1 , arg2 , arg3...) func(lon...
Pommard asked 9/6, 2009 at 15:23

2

Solved

Is there an easy way to sort methods within a class in Eclipse?
Thomasina asked 12/5, 2009 at 18:45

© 2022 - 2024 — McMap. All rights reserved.