code-formatting Questions
4
Solved
I'm having trouble to get eclipse format my JavaScript well.
In this first example, it behaves as expected (not the length of the second url):
Whenever i have a longer url, eclipse goes crazy fo...
Outer asked 1/3, 2013 at 12:13
11
Solved
Is there a decent way to declare a long single line string in C#, such that it isn't impossible to declare and/or view the string in an editor?
The options I'm aware of are:
1: Let it run. This i...
Whisenant asked 14/10, 2009 at 12:5
2
I would like to configure the vscode to format my JSON objects with 2 spaces of indent, not 4 as it does by default. How can I do this?
Mukul asked 8/2, 2017 at 17:55
29
Solved
What is the equivalent of Ctrl + K + F and Ctrl + K + D on Windows in Visual Studio for formatting, or "beautifying" code in the Visual Studio Code editor?
Jariah asked 30/4, 2015 at 16:43
5
The XML formatting works perfect but not the html formatting. In fact if I use "cmd-shift-F" for a html file, it just left aligns almost everything. I've attached the before and after pictures.
...
Alisa asked 6/2, 2011 at 3:33
4
I usually wrap long strings by concatenating them:
Log.Debug("I am a long string. So long that I must " +
"be on multiple lines to be feasible.");
This is perfectly efficient, since the compile...
Gersham asked 31/8, 2015 at 22:47
2
Solved
I got this little piece of code:
text = """<html><head></head><body>
<h1 style="
text-align: center;
">Main site</h1>
<div>
<p style="
color: blue...
Bertine asked 19/12, 2017 at 2:17
5
Solved
I have an old Eclipse project and the code is not well formatted. I'd like to format all the .java files according to the settings in Eclipse. I don't want to edit every individual file with Ctrl+S...
Tallbott asked 27/2, 2011 at 14:37
2
Recently I've been coding shaders for unity in visual studio and I've noticed that since unity shaders are written in a combination of unity's shader lab language and CG, visual studio 2015 d...
Meeker asked 29/7, 2016 at 13:49
6
Solved
This question is similar to a LOT of questions, but in no such way is it anything of a duplicate. This question is about string concatenation and writing better code less than it is for checking ni...
Radius asked 3/2, 2010 at 21:8
2
Solved
Given a file in my project, I want to be able to replace all of the tab characters in the file with white spaces. Is there any way to do this in intellij?
Trumpery asked 12/9, 2014 at 20:43
2
Short version
When pressing <enter> at the end of a // comment, Intellij sometimes decides to continue the // comment on the next line. How can I prevent that? Is there a setting somewhere t...
Downy asked 20/7, 2017 at 19:15
0
In Objective-C how to prevent new lines here:
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section {
to see this:
- (NSInteger)tableView:(UITableView *)tabl...
Maladminister asked 13/11, 2017 at 21:23
5
We have a code generator that munges the schema of a given database to automate our inhouse n-tier architecture. The output is various C# partial classes, one per file.
In the code to munge all t...
Hydroid asked 25/3, 2009 at 13:7
2
Solved
So we have this hundreds of thousands of lines of code git repository and since I joined the project 2 years ago, the formatting bugs me. And it not only bugs me but as devs randomly "fix" the fomr...
Gradient asked 30/10, 2017 at 19:45
2
Solved
I have a small problem with java code formatting in Intellij Idea 14.1.4.
I have a piece of code formatted manually by me, that looks good for me:
public class Test {
private static final Immutabl...
Jozef asked 15/7, 2015 at 7:40
3
Solved
Are there best practices or style guidelines for working with Python's argparse module?
I work with argparse on a regular basis, and it quickly takes up a respectable number of lines to handle all...
Liman asked 12/10, 2017 at 22:25
3
Solved
I use code formatting command (Ctrl + Shift + F) a lot in Eclipse IDE. While this works pretty well for Java / CSS source codes, the JSP formatting is just sucks.
Is there any plug-in available to...
Gland asked 12/8, 2010 at 15:20
3
Solved
Resharper 2016.2
Current formatting
IEnumerable<Customer> customers = dbCustomers.Select(customer => new Customer
{
Name = customer.Name,
Address = customer.Address,
Number = custome...
Mahlstick asked 14/12, 2016 at 13:3
1
In the Preferences > Code Style > Arrangement- tab, I have to manually enter matching rules for specific method names if I want to arrange them to be at the top.
For example, I have an activ...
Chrismatory asked 25/4, 2014 at 7:9
5
Solved
Using Play Framework 2 I've noticed the rendered Scala HTML templates don't like indented @if or @for.
So, for example, something like that:
<ul>
@for(test <- tests) {
<li>@test....
Squawk asked 4/1, 2013 at 9:46
2
Different devs on our team have wildly different checkboxes here:
and as a consequence Visual Studio keeps reformatting code and this really pollutes our commits.
What I want is to have a singl...
Axletree asked 27/7, 2012 at 8:49
6
Solved
Why JSLint report in code:
function cos(a) {
var b = 0;
if (a) {
b = 1;
}
else {
b = 2;
}
return b;
}
error:
Problem at line 6 character 5: Expected exactly one space between '}' and '...
Altricial asked 15/11, 2011 at 0:35
10
Solved
I'm a newbie in eclipse. I want to indent all the lines of my code and formatting the open file by pressing a shortcut or something like that...
I know the CTRL+SHIFT+F (as it actually doesn't work...
Lieutenancy asked 4/10, 2011 at 21:29
3
Solved
Is there a means to format code snippets in any way, ideally a Markdown like syntax, in Visual Studio Team Services (formerly Visual Studio Online)?
Using italics just doesn't sit right with me.
...
Kaitlin asked 14/6, 2016 at 23:22
© 2022 - 2024 — McMap. All rights reserved.