code-formatting Questions
0
Mostly just out of curiosity, but if you are using a checkstyle configuration file checkstyle.xml and a (separate) suppression file checkstyle-suppressions.xml with the maven-checkstyle-plugin on a...
Yokoyama asked 19/5, 2020 at 20:31
16
Solved
Is there a way to make this look a little better?
conn.exec 'select attr1, attr2, attr3, attr4, attr5, attr6, attr7 ' +
'from table1, table2, table3, etc, etc, etc, etc, etc, ' +
'where etc etc ...
Abbate asked 25/2, 2010 at 20:48
3
Solved
I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax:
It removes "_" in concatenations:
'Before
myString = "ABC" & _
"DEF"
'After
myStr...
Bituminous asked 7/8, 2015 at 9:40
3
In Android studio, when I open a dart file, I see two options to format the code, so my question is
What is the difference between Reformat Code / Reformat Code with dartfmt
Rizzi asked 17/12, 2019 at 3:15
3
Solved
Current state:
I have a project which is build with: Java 1.8.161, Maven 3.3.9, SpringBoot 2.0.1, tools: Jenkins and GitLab. I would like to use google java format as a standard for whole team.
M...
Molecular asked 14/6, 2018 at 12:35
3
For supported files in VSCode we get an option (when you right click on the file editor) to Format Document (ALT+SHIFT+F).
But unfortunately for Groovy this option is not available. And acco...
Loosen asked 14/7, 2018 at 4:59
10
Solved
Is there a way to get SharePoint to display code snippets in a pre-formatted way?
Currently if you insert any code, it just looks exactly like the rest of the text. Anything would be better than no...
Romalda asked 29/12, 2008 at 17:55
1
For example if we have this in a .ts file:
export const handleHMRMessages = (cache: any, store: CPReduxStore, conn: WebSocket) => {
conn.onclose = () => {
store.dispatch(actions.dev.hmrDi...
Incontestable asked 7/3, 2020 at 0:40
4
Solved
How do I prevent Visual Studio Code from pushing chained JavaScript functions on to a new line as can be seen illustrated by the GIF below:
As you can see, it makes the code extremely hard to vi...
Counteraccusation asked 10/4, 2018 at 13:53
2
When the list of arguments to a method grows to the point where they do not fit comfortably on one line, I like to format code such that each argument is on a separate line (following the StyleCop ...
Orgy asked 13/8, 2011 at 21:50
1
Solved
I have an Elixir project .formatter.exs file in my umbrella app's root that looks like this:
[
line_length: 120,
inputs: ["mix.exs", "config/*.exs"],
subdirectories: ["a...
Lorilee asked 30/12, 2019 at 19:1
1
Solved
I haven't been able to find anything on this online.
Is there any way to specify that an underscore prefix for readonly private fields should be added?
Ever since I started using an editorc...
Jorgensen asked 18/12, 2019 at 13:55
3
Solved
How do I Optimize Imports on a whole folder or project?
Buenabuenaventura asked 6/6, 2015 at 15:18
6
Solved
I'm facing problem with keeping proper order of XML attributes in Android Studio. As you can see below, the style attribute is between layout_* attributes, but I want it to be ordered by name (like...
Bluestone asked 13/8, 2013 at 9:56
5
Solved
Is there a way to stop eclipse from mangling the comments in my source files?
My main issue is stopping it from word wrapping them. I've managed to configure eclipse to not word wrap any code but ...
Rad asked 19/10, 2009 at 11:0
1
I use prettier for formatting my code. How can I configure prettier to add a space depending on curly braces in react code?
Current code:
<AdminPanel
theme={myTheme}
dataProvider={dataProvid...
Badger asked 4/12, 2019 at 18:55
1
I like how Android Studio and Visual Studio , generate the comments for each closing brackets, but when I open the same file in notepad++ or any other text editor, I don't see those comments. Is th...
Gossipry asked 21/10, 2019 at 2:17
1
Solved
In a scala project where we are using IntelliJ community edition, we want to use multiple packages per file, so that we can reference them with shorter syntax:
package com.dreamlines.dragonfly
pac...
Lehr asked 10/9, 2019 at 15:22
2
Solved
I read a lot of answers about formatting options for fluent indendation.
( Resharper formatting code into a single line and ReSharper fluent indentation and http://youtrack.jetbrains.com/issue/RSRP...
Informative asked 20/7, 2012 at 7:22
0
They don't seem to be exported in vssettings etc. I don't see a way to restore them to an earlier version or even the default out-of-the-box Visual Studio settings ...
Restoring all settings also ...
Lite asked 24/7, 2019 at 14:12
1
Solved
How to force IntellJ code formatter to autoindent wrapped arguments list on different level than wrapped chained method calls:
EDIT: See updated examples for better problem description. The defaul...
Madiemadigan asked 12/11, 2015 at 19:33
2
Eclipse has a great feature to allow you to align all your 'fields in columns' meaning that it will turn:
int myVar = 2334;
int asdf = 34;
String s = "hello";
into
int myVar = 2334;
int asdf = ...
Hotspur asked 26/12, 2009 at 8:29
6
Is there a way/shortcut/built-in feature that can align code for operands, like '=' signs?
For example, there is a XAlign for Xcode (https://github.com/qfish/XAlign), allowing the user to select c...
Pre asked 29/1, 2015 at 19:41
6
Note to Googlers, this question is somewhat out of date as the requested feature is now supported in the current version of ReSharper 2017.3.1
I like to formatting my code to align right side ...
Wilda asked 17/8, 2009 at 8:38
2
I want to format my code according to the Google Java Style.
There are some issues when it comes to import statements. The one rule I can not fulfill other than by manual editing each class is thi...
Nystagmus asked 2/5, 2018 at 10:19
© 2022 - 2024 — McMap. All rights reserved.