code-formatting Questions
2
Solved
As I type the following javascript code (exact keystrokes):
myObject
.doSomething()
.doSomethingElse();
I'd expect it to automatically become the following...
myObject
.doSomething()
.doSomet...
Lough asked 24/11, 2014 at 3:46
1
Solved
I use clang-format to format our C++ code. I would like to have an empty line between the class declaration and the closing brace of the surrounding namespace like so:
namespace Foo {
class Bar {...
Chairborne asked 5/11, 2015 at 14:30
1
The Go model of code formatting conventions is "gofmt is the convention". There is one part of that convention I'm having difficulty in understanding, and it would be great to have a formal definit...
Marrissa asked 4/2, 2016 at 12:47
1
Solved
Per default, IntelliJ 15.0.3 puts the closing brace of an empty lambda expression on the next line when reformatting the code.
Consumer<String> myFunc= aString -> {
};
In my opinion thi...
Coverture asked 4/2, 2016 at 11:58
2
Solved
How can i reformat file(s) in IntelliJ and join all lines that are split.
I know that I can do that individually by selecting lines and "join lines" with CTRL + SHIFT + J
Since we changed our co...
Domitiladomonic asked 19/8, 2011 at 9:23
3
Solved
When formatting code a Razor cshtml file in Visual Studio 2012 (with Ctrl + K + D) if model is a generic type, VS makes it all lowercase. For example:
@model IEnumerable<Content>
converts ...
Tacye asked 19/9, 2012 at 8:43
3
Solved
Is there a way to beautify JavaScript and CSS in Firebug?
I'd like to be able to view formatted JavaScript code instead of the compressed version :).
Ajay asked 9/7, 2010 at 21:7
1
Solved
Is there keyboard shortcut to convert horizontal list to vertical list and vice versa in IntelliJ IDEA and based on it IDE PhpStorm? For example I have array
$arr = [
'test',
'a' => 'b',
];
...
Joanjoana asked 10/11, 2015 at 16:5
6
Solved
got a new blog at wordpress few days ago (http://ghads.wordpress.com) and I want to post some code snippets now or then. Is there anyway to make it look like code without paying for extra plu...
Meehan asked 17/9, 2008 at 9:9
1
Solved
Is there an option in android studio to leave one-line method when reformatting code ? For example, for a simple getter, i prefer this style of coding:
public int getPosition() {return mPosition;}...
Adao asked 9/10, 2015 at 20:34
1
I have a lot of confusion regarding Clang Format API.
I am not able to open .clangformat file so that I can take a look into that and configure according to me.
I need to format my code in Allman...
Slaver asked 25/9, 2015 at 7:3
1
Solved
I would like to apply uncrustify (via beautify in the Atom editor and a config file) to CUDA code. However, I don't know how to tell uncrustify to recognize CUDA kernel calls which have the followi...
Czardas asked 10/7, 2015 at 8:30
0
I want to group imports by packages in intelliJ.
Right now it sorts the imports properly, and gives me this.
import com.google.common.Something
import com.google.common.SomethingElse
import org.a...
Subordinary asked 17/7, 2015 at 21:28
5
Solved
I'm currently using Vim as a lightweight IDE. I have NERDTree, bufexplorer, supertab, and ctags plugins which do almost everything I want. Only big thing missing for me is auto code formatting.
I'...
Ashtray asked 13/5, 2009 at 13:15
4
Solved
In Eclipse, under Windows -> Preference -> Java -> Code Style, you can define code templates for comments and code, and you can setup a code formatter.
I'm wondering if it is possible in Eclipse ...
Farfetched asked 24/10, 2008 at 17:47
2
The Eclipse format tool (Luna) does not account for
Enforcing 1 blank line before and after a non-orphaned brace on non-function declaration.
for (...) {, if (...) {, } else {, } catch (...) {...
Mistletoe asked 29/5, 2015 at 14:52
4
Solved
Is there any plugin, macro or built-in function that can remove empty or redundant empty lines in Netbeans 7.2 (PHP bundle, Windows 7)? Due to different line-break formats in my upload and do...
Footsie asked 6/3, 2013 at 15:25
1
Solved
What I have:
I have a customised code format (.xml) file that my team wants to use in our project. This file includes predefined coding styles and conventions for java file.
What I want to do:
N...
Convenient asked 11/5, 2015 at 19:11
5
Solved
One of the people who took the time to comment on my other question about Clojure/LISP syntax pointed out that I had not written my sample code in the standard LISP way. So he was kind enough to re...
Busiek asked 12/2, 2009 at 14:15
1
Solved
IntelliJ formats my test code like this:
test("a configuration without classpath to analyze is not valid") {
Configuration(
None,
Seq(),
Seq(),
Map(),
Some(PrintConfiguration(print = Always...
Forepaw asked 2/4, 2015 at 5:51
7
Solved
The formatting options of Eclipse avoids me lots of conflicts with other users, and ensure that my code always looks "clean" (especially regarding my git commits).
I know about the "Format on sav...
Pushcart asked 21/3, 2011 at 13:14
3
Solved
Many of the options include the Force value option:
Add or remove space between nested parens
sp_paren_paren { Ignore, Add, Remove, Force }
What does it mean? How is it different than Add?...
Happ asked 3/1, 2012 at 21:10
3
Solved
I really love pythons possibility to shorten things up with its shorthand for loops — but sometimes, I need to obtain a list containing one value multiple times, which I did the following way:
plo...
Icbm asked 2/2, 2015 at 23:24
1
Solved
After upgrading from 7.x to 8.x I noticed an annoying new "feature". When on an empty line (after pressing enter), then pressing backspace (which used to get rid of the indentation character right ...
Attlee asked 1/2, 2015 at 9:59
3
Solved
For projects heavily used of Java annotations, is there any suggestion on the annotation order? So as to uniform the code style in the team.
Tern asked 12/4, 2011 at 16:8
© 2022 - 2024 — McMap. All rights reserved.