code-formatting Questions
4
Solved
I'm new to coding C++ programs in Visual Studio. When I am coding C# programs in VS, code formatter changes code that looked like this
for(int i= 0; i<(n+ m) ; i++){
}
into
for(int i = 0; i...
Pictor asked 10/12, 2011 at 20:0
1
Solved
Uncrustify is great, and does an excellent job of tidying code.
However, I have some C code within a file that I don't want Uncrustify to change. Is there any way I can prevent Uncrustify from touc...
Enrollment asked 26/2, 2013 at 19:22
1
Solved
Is there a setting in R# to format chained method to start at the same character of the class instantiated.
What I want:
var foo = new FooDataBuilder()
.WithDate(myDate)
.WithBar(myBar)
.Build...
Madsen asked 16/3, 2013 at 14:2
5
Solved
I would like to lint (and perhaps even automatically) beautify whitespace in JavaScript. The question is whether there are any tools that can do this.
I know that JSLint and JSHint, e.g., ca...
Winepress asked 7/3, 2013 at 6:20
3
i'm working with Eclipse in Java and with long long classes i need a feature like this: in the top comment of a method (for example) there is a list of operations executed by the method.
For each o...
Urdar asked 21/2, 2013 at 11:45
1
Solved
Recently I wrote some tools that help me generate Java code for what would otherwise be long and tedious tasks. I use freemarker to write up templates. However, all whitespace in the templates is p...
Purge asked 9/2, 2013 at 12:38
1
Solved
I would like to automatically format my files before they are added to Git's index. Right now, I have a pre-commit hook that looks like this:
#!/bin/bash
set -e
exec 1>&2
workingext="work...
Mopup asked 19/1, 2013 at 3:10
5
Solved
So how can I still be able to write beautiful code such as:
'im a string meing!'.pop
Note: str.chop isn't sufficient answer
Cardcarrying asked 15/2, 2010 at 14:28
7
Solved
I'm starting to learn ruby. I'm also a day-to-day C++ dev.
For C++ projects I usually go with following dir structure
/
-/bin <- built binaries
-/build <- build time temporary object (eg. ...
Scoop asked 11/9, 2008 at 11:58
1
Solved
So Resharper is putting a line break before the "new" in my code when re-formatting it as follows:
var foo = new Foo
{
Bar = null,
Baz =
new Baz
{
Bap = null,
Bork = null,
Help =
new Pweas...
Selfregulating asked 21/12, 2012 at 7:4
2
I'd like to know what's the syntax or the language used to format the code templates in netbeans ide. I mean, in the default templates I can see things like;
while (${EXP default="exp"})
{
${sel...
Connieconniption asked 10/11, 2012 at 19:2
2
Solved
I have a bad habit of writing lines of code that are too damn long, so I finally got around to setting "colorcolumn=101" and textwidth=100 in my .vimrc.
I would like to be able to retroactively a...
Tarrasa asked 10/12, 2012 at 14:23
3
Solved
I have a JavaScript code written as a one long line and I want to re-format that so that each statement is written in one line. Is that possible using Vim? I tried the gqq and == commands and they ...
Trunk asked 5/1, 2011 at 8:25
6
Solved
Does an auto-formatting tool exist for vi that'll allow me to define per language preferences?
edit: I'm not looking for syntax highlighting. I'm looking for something that will apply formatting r...
Pleinair asked 20/1, 2009 at 23:27
2
Solved
How do I adjust the # of spaces added/removed by Eclipse when I hit Tab or Shift+Tab, for a given filetype? I am working on reStructuredText files (.rst) and want 2 spaces for those instead of 4.
Mckinley asked 14/1, 2010 at 18:11
1
I find myself wasting so much time dealing with Xcodes auto indentation that I have to ask if there is something I just have wrong in my settings. Basically if I spend time indenting code within a ...
Cobra asked 11/9, 2012 at 5:28
4
Solved
On a generated project I get 100s of warnings caused by unused imports and such things. Can I bulk cleanup those imports for all files?
Salisbury asked 21/11, 2009 at 12:21
6
Solved
If i try to paste source code in word 2007 the spacing between the lines seems to get messed up as all new lines are spaced way apart compared to a programming text editor.
Can somebody tell me ho...
Cutting asked 11/11, 2008 at 4:19
1
Solved
So, this:
cmd = new OdbcCommand( string.Format( @"
SELECT *
FROM Bobby_Tables
WHERE Name = {0}", "Little Bobby Drop Tables" ), odbcConnection );
gets formatted to:
cmd =
new OdbcCommand(
...
Benighted asked 31/7, 2012 at 16:22
2
Solved
If I press tab the line moves to right, what I must press to move line to left?
Pin asked 4/4, 2010 at 7:46
3
Solved
I'm working on a LaTeX document and using lstlisting to display my Java source code. My setup looks like this:
\lstset{
basicstyle=\ttfamily,
keywordstyle=\bfseries,
language=Java,
frame=singl...
Costin asked 25/3, 2010 at 11:47
1
Solved
I created a test branch on a master branch and made some commits on it. Among these commits there were auto-formatting changes. So when I type
git diff master test
I can see almost every line with...
Dropping asked 20/7, 2012 at 0:2
3
Solved
Whenever I use the Eclipse source code formatter / beautifier (via the menu item Source - Clean Up or CTRL - SHIFT - f) it reformats statements that I have broken into multiple lines back into one ...
Ornithopod asked 28/10, 2009 at 1:13
1
Solved
How do I configure the RAD Studio IDE to format my code with begin on either the same or next line when I use the Format Source option?
One of the most commonly debated preferences is the position...
Intine asked 2/6, 2012 at 1:11
3
Possible Duplicate:
A free tool to check C/C++ source code against a set of coding standards?
I am starting a c++ project involving several people I have no direct access to. We agree...
Gastelum asked 30/5, 2012 at 15:26
© 2022 - 2024 — McMap. All rights reserved.