code-formatting Questions

2

Solved

I want to use Prettier and ESLint together, but I experienced some conflicts just by using them one after another. I see that there are these three packages that seem to allow them to be used in ta...
Resist asked 22/6, 2017 at 4:43

23

Solved

I have Notepad++ and I got some XML code which is very long. When I pasted it in Notepad++ there was a long line of code (difficult to read and work with). I want to know if there is a simple way ...
Isabel asked 18/10, 2010 at 16:35

4

Solved

I've used the "reformat code" option but it refuses to format the code to my custom settings. I have changed the "code style" settings in a new template and I'm using it. There is not option to cha...
Peltast asked 30/10, 2013 at 14:14

5

I and my team spent the last few months defining rules about C# code formatting and style for our project, so we ended up with an .editorconfig file. Moreover, we all installed the extension Produc...

7

I'm looking for a way to auto-format my code in the WebStorm IDE?
Ashlieashlin asked 19/1, 2014 at 14:10

0

I want to use dart format to format dart code, but my team uses custom format rules – such as line length of 120 characters and a few other things. Currently, code is formatted using settings in th...
Dutra asked 4/10, 2023 at 16:54

8

Solved

Just moving over to Vim at the moment. In TextMate I could format code by hitting Cmd-Alt-[. How do I achieve the same in Vim? See the answer below for the command. I found I also needed the fol...
Bellhop asked 24/9, 2010 at 9:8

2

I want to format Jenkinsfile locally and understand if they are any formatting issues. I use sublime editor for editing. Is there a better editor which can also suggest me any formatting errors? I ...
Brinton asked 31/10, 2019 at 20:56

6

Solved

I often need to use a text editor while writing code to paste random notes but especially JSON responses, where I format them using a plugin (for Sublime). I recently heard about the 'scratch fil...
Stork asked 13/12, 2016 at 9:46

6

Solved

I've decided to contribute to android maven plugin. They use quite specific code style format. It will take some time for me to modify IDEA code format rules to satisfy their requirements. Fort...
Hoberthobey asked 26/1, 2013 at 17:6

4

In Eclipse,(Window -> Preferences -> Java -> Code Style -> Formatter) there was a facility to create my own format style and apply it in the code. Is there a way to do that in Android Studio(for Ja...
Donnelldonnelly asked 3/10, 2014 at 15:4

3

Solved

How can I remove extra spaces from my code using astyle? For example I want to convert the following code: void foo ( int a , int c ) { d = a+ c; } to this: void foo (int a, int c) { d = a + c...
Furry asked 6/6, 2015 at 7:47

6

Solved

Are there any command/shortcut to auto-indent all my code on the page at once on Sublime Text 3? e.g: On NetBeans I can do this with Alt+Shift+F.
Epley asked 28/6, 2017 at 13:13

5

Solved

The HTML5 documentation recommends putting the code element inside the pre element, but I don't understand how this is better or more semantic than just using the code element and CSS. In their own...
Intercostal asked 31/7, 2012 at 14:53

7

Solved

Is there some combination of keys or a menu option that I can use to automatically format my code in Visual Studio?
Entranceway asked 8/2, 2012 at 16:37

4

Solved

I want to show some SQL queries inside a notebook. I neither need nor want them to run. I'd just like them to be well formatted. At the very least I want them to be indented properly with new lines...
Snobbery asked 8/12, 2016 at 19:3

5

I'm attempting to take advantage of the integration with Visual Studio Code, but can't figure out how to set the C# formatting options. The config.json right next to the OmniSharp exe on my Mac (/A...
Yl asked 22/12, 2015 at 3:15

1

I'm working on a project that uses Typescript and Java. The code formatting used for the code style is Intellij's default formatting. I am using vscode, so I would like to use Intellij's code forma...
Clercq asked 21/2, 2021 at 15:56

2

Using Visual Studio 2019, I found a really useful refactoring option in 'Quick actions and refactoring': (might come from PowerTools, whatever) I just wondered how: I can make this wrapping setti...
Benzocaine asked 15/5, 2019 at 9:32

9

Solved

I am trying to use clang-tools in particular clang-format for automatic code formatting in vim but I couldn't find this tool with apt-get search. Is there anybody experienced this problem before, ...
Squint asked 24/12, 2013 at 7:43

3

Is there a way to generate a eclipse code formatter xml which matches Intellij IDEA code formatting rules?
Dissuasive asked 24/3, 2015 at 6:54

2

Solved

I seem to have enabled an awkward mode in my VS Code editor that i cant seem to backtrack. I initially set my Ctrl + Alt + L keybinding to format the code in my editor. Which it initially did. Aft...

14

Solved

I've got some Java code with SQL statements written as Java strings (please no OR/M flamewars, the embedded SQL is what it is - not my decision). I've broken the SQL statements semantically into s...

3

Solved

When I'm writing code in Intellij, I often create new blocks by typing these types of sequences: if (test) { Typing that open curly brace causes Intellij to automatically insert a closing brace ...
Blaise asked 1/1, 2015 at 19:37

2

Solved

Is it possible to tell the editor in Qt Creator (I'm using V.4.9.2) to show some "indentation guides" like in C++Builder (default), Notepad++ (default) or Visual Studio (via plugin)? What I mean a...
Doublecheck asked 3/10, 2017 at 20:16

© 2022 - 2024 — McMap. All rights reserved.