Skip to main content
Filter by
Sorted by
Tagged with
4 votes
1 answer
143 views

I want my C++ class definitions to have access modifiers indented like below: class Foo { public: Foo(Bar bar); Foo(Bar *bar); }; Foo::Foo(Bar bar) { if () { while () { } }...
Artyom Fedosov's user avatar
2 votes
1 answer
124 views

I'm using CLion to work on some C++ project. When I write case statements, CLion always indents my case lines, like so: switch(foo) { case bar_1: do_stuff(); break; case bar_2: ...
einpoklum's user avatar
  • 137k
1 vote
0 answers
150 views

I've been trying to get automatic code formatting working with my .editorconfig settings in Windsurf IDE for my C# codebase. I tried the Prettier extension, but found it doesn't support C#. I also ...
Martina's user avatar
  • 829
1 vote
1 answer
157 views

I'm new to COBOL, and I'd like to understand continuation if a line is too long. I know that there is a free form, but originally (in strict mode), the line length is limited. I'd like to split the ...
FERcsI's user avatar
  • 500
0 votes
0 answers
49 views

I can't for the life of me figure out how to do this, if possible. When using explicit expressions as values for EventHandlers or actions on components, is there a way to define how you want them ...
Casper Thamdrup's user avatar
1 vote
2 answers
243 views

I am working with Pascal/Delphi code and need to format a selection of code with custom indentation rules (e.g. 4 spaces for indentation). I want to apply these formatting rules to the selected code ...
user5005768-hd's user avatar
0 votes
2 answers
937 views

I am using VSCode since a couple years and have recently changed computers. After installing VSCode, I came upon this issue: lets say I have a list like this: int_list = [ 1, 2, 3, 4, ] and now I ...
Nicolas Bechstedt's user avatar
2 votes
0 answers
48 views

Suppose I have Javadoc comment with: /** * <ul> * <li>stuff</li> * <li>stuff</li> * </ul> */ When I run any of the eclipse formatting methods on ...
Harald's user avatar
  • 5,277
7 votes
2 answers
275 views

I would like to be able to keep Delphi from formatting a specific block of text because it is much easier to read when formatted in a specific way, but pressing Ctrl+D will make it much harder to read....
Normand P.'s user avatar
0 votes
1 answer
123 views

I use DataGrip 2022.2.1. When I use code formatting AND condition in new line set before JOIN select pfv.value from pay.PaymentFields pf inner join pay.PaymentFieldValues pfv on pfv.id = ...
e1s's user avatar
  • 375
0 votes
0 answers
62 views

I'm looking for a Clang configuration that will convert code A into code B (see below). My preference is to "explode" functions with 3 or more arguments for personal readability, and I haven'...
okaycoolneat's user avatar
0 votes
0 answers
66 views

I want to use the command Reindent Selected Lines or Reindent Lines with a shortcut. I tried setting keybindings to each of them but when I press them in notebooks or scripts (using Python), nothing ...
João Bravo's user avatar
1 vote
1 answer
1k views

I rely on clean-up profile with the "run on save" checked to ensure my code is formatted on save: 'Format code' and 'sort using' on save in Visual Studio 2022 While that ...
Cfun's user avatar
  • 9,871
2 votes
1 answer
96 views

Is there an option to set the penalty for breaking preprocessor directives into multiple lines? For example, if I have the following snippet: #define my_constant 1 // Lorem ipsum dolor sit amet, ...
skillz21's user avatar
  • 196
1 vote
1 answer
122 views

Below is the clang-format of ".h" header file with variable size of strings. string a[x] = { "masfasdno", "iasdst", "xafdsfayz", "pqssssr&...
thirdeye's user avatar
  • 302
0 votes
0 answers
54 views

How can I modify the IntelliJ SQL-Formatter to insert an indent before the SET (after an UPDATE)? Current code: UPDATE role SET is_available = 0 , is_updated = 1 WHERE name = 'Admin'; Desired ...
Simon's user avatar
  • 1,473
0 votes
1 answer
763 views

I am using Code Cleanup in Visual Studio and noticed when file is on save. The unused variable will be removed like: I tried editing the .editorConfig file but it didn't seem to work with any of the ...
Sophie cai's user avatar
5 votes
2 answers
3k views

I've been enjoying the convenience of the Black Formatter extension in Visual Studio Code, especially its "Format on Save" feature for Python files. Being able to automatically format my ...
Ellie Su's user avatar
0 votes
1 answer
595 views

If the info.plist file changes, the PR changes and it's very cumbersome to modify. Is there a way to modify it through github action or CI build? Or I'm looking for a way to keep it consistent through ...
DONGNYEONG's user avatar
0 votes
2 answers
861 views

Before I state any of my problems this is my .prettierrc file so far { "semi": true, "useTabs": true, "tabWidth": 4 } Problem 1: I would like my prettier to ...
MrGod1y's user avatar
  • 17
1 vote
1 answer
1k views

I have the Microsoft Black Formatter extension in VSCode (in WSL, inside Windows 11). I can format opened python files with no problem, one-by-one, either using keyboard shortcut or right click on the ...
Andras Vanyolos's user avatar
4 votes
0 answers
144 views

Is there any way I can setup clang-format to nicely* format an expression like this? foo({ [](int) { bar(); baz(); }, [](float) {} }); With my current config this gets ...
chrysante's user avatar
  • 2,846
-1 votes
1 answer
45 views

I want all the code in our repository to always use blocks enclosed with brackets for the clauses of if statements, loops and even for inline functions. The following code is banned: const func = () =&...
kaan_atakan's user avatar
  • 4,107
1 vote
1 answer
1k views

I'm using Visual Studio Code for a JavaScript project and facing a formatting challenge with Prettier, which I'm using in conjunction with ESLint. My preference is to maintain a space between the ...
Mark Antonie's user avatar
1 vote
2 answers
200 views

I am currently working on a project in Visual Studio Code that has poorly formatted code. Due to project constraints, I am not allowed to reformat the existing code and commit those changes. This ...
Mikhail Yevchenko's user avatar

1
2 3 4 5
34