code-formatting Questions

1

Solved

This seems to be a FAQ question, because I know what the corrent answer should be for setting up indentation for Java code in Eclipse (Windows -> Preferences -> Java -> Code Style -> Formatter), bu...
Rapp asked 12/5, 2012 at 19:24

1

Solved

Possible Duplicate: Do comments slow down an interpreted language? Will there be noticeable performance degradation in the execution of a large .py file if more than 75% of the lines ...
Companionate asked 7/5, 2012 at 17:49

2

I want to be able to use the gq key combination in Vim to format the text in my Beamer LaTeX slides. For example, I'd like gqap to transform this: \begin{frame}{Some title} \begin{itemize}\item f...
Foxglove asked 25/8, 2011 at 7:3

1

Solved

I want to have text that has underscores in it. It's not code and so I don't want to use code format. I want to stop markdown treating it as an instruction to italicize it. I can escape _each_un...
Foamy asked 24/4, 2012 at 16:59

1

Solved

I have found the code formatting present in the Roslyn CTP quite lacking. But Dustin Campbell mentioned in his talk (around 42:00 mark) that: The actual formatting engine is also extensible. The...
Hypergolic asked 23/4, 2012 at 23:36

1

I've found that I can't get code blocks within numbered lists. For example, when I add a code block by indenting by four spaces normally like below: 1. Do the first thing $ git stuff $ git o...
Pressurize asked 22/4, 2012 at 19:12

3

Solved

This is just out of curiosity I ask... 99% of the code I see anywhere, when using "IF", will be of the format "If (RValue == LValue) ...". Example: If (variableABC == "Hello World") ... There a...
Outboard asked 20/4, 2012 at 19:14

2

Solved

I am having an issue with formatting code with ReSharper. I have disabled the option for wrapping lines. With this option, the following code will be formatted to a single line. How can I have ReS...
Dulce asked 11/1, 2012 at 17:22

1

Solved

Please suggest a way to auto format all py files in an eclipse project using pydev auto code format. We're using the pydev code formatter to make our code consistent and would really like to get al...
Ghostly asked 25/3, 2012 at 2:1

7

Is there a command-line Unix tool that will format/indent/prettify source code in different languages? I'm especially interested in Java, JavaScript, PHP, and XML, but ideally it would handle...
Strep asked 13/11, 2009 at 19:29

3

I quite often use the ReSharper "Clean Up Code" command to format my code to our coding style before checking it into source control. This works well in general, but some bits of code are better fo...
Gourmet asked 1/2, 2010 at 11:57

5

Solved

I'm working on a project(PHP) and on every commit there are some breaks on code convention. I'm using git for version control. Is there a way for automated code formatting so that all the code stay...
Acrophobia asked 23/2, 2012 at 12:54

1

Solved

I did a code format in master branch. It mainly fixed whitespace issues like: formatting tab space lengths, adds and removes newlines before and after braces. The problem is, when I try to merge ma...
Theodoratheodore asked 13/2, 2012 at 12:28

1

Solved

Why does COBOL have to be indented, as in, have additional spacing in each sourcefile? Consider this code (note the additional whitespace): IDENTIFICATION DIVISION. PROGRAM-ID. HELLO-WORL...
Mortmain asked 22/1, 2012 at 6:34

2

Solved

I was writing a LaTeX document, using Lyx as a front-end. I did not find a way to correctly format JSON data inside these documents. How can I beautify or format JSON data inside a Latex document...
Keffiyeh asked 22/11, 2009 at 21:21

1

Solved

I have a set of variables I allow some people I work with to edit. These are True (T) and False (F) values, but I have some people that insist on putting t and f instead of the upper case values re...
Rani asked 6/1, 2012 at 14:36

2

Solved

I have a large codebase, where almost every single file isn't aligned properly, has bad spacing between variables or methods, or just generally ugly code. I'd like to make it better as I work with...
Ciccia asked 2/1, 2012 at 9:46

2

Solved

Is there any library that takes in your python file as input and does tidy-up (modifies it based on the PEP 8 conventions). To understand what I am talking about, a JavaScript analogy is as follows...
Fairminded asked 21/11, 2011 at 15:3

3

Few weeks ago I tried Intellij and I found it really awesome. Now, at my project there are two programmers (including me) using Intellij and few other programmers who are going to keep using Eclips...
Plangent asked 8/4, 2010 at 23:25

4

Solved

SQL seems to be the most neglected language when it comes to formatting nicely and readably... And as SQL statements can be incredibly detailed and complex, it makes it extremely hard to work with....
Greenaway asked 1/7, 2010 at 18:14

3

Solved

I saw this somewhere, but cannot find it now. Is there a built-in function in emacs, or does someone have elisp, to line up all the equals signs in a series of inititialization statments in cc-mod...
Neva asked 27/5, 2009 at 14:22

1

Solved

I need the exact same effect as in this question but in Eclipse. It should only do the alignment if I explcitly insert a new line before the ":" or if the second operand (the "true" expression) is...
Bunde asked 8/11, 2011 at 1:30

1

I am using Emacs to modify code which is interleaving Perl and Verilog. I am using two-mode-mode to switch between the two, which works as expected. The problem is that the perl code is indicated o...
Aromaticity asked 31/5, 2011 at 17:56

2

Is there any tool similar to AStyle to format matlab code in m-files?
Litton asked 22/10, 2011 at 16:43

5

Solved

Seriously, I don't know what to google. Here's the thing, I like this Java-like code writing: if (condition == true) { doSomeStuff(); } But VisualStudio "helps" me with its own "st...
Pontine asked 15/5, 2010 at 21:51

© 2022 - 2024 — McMap. All rights reserved.