1,660 questions
0
votes
0
answers
20
views
editorConfig file not considered by Visual Studio 2022 / C++
I code in C++ in Visual Studio 2022.
My sources and solution/project files are in two different directories. Neither is included in the other. They're strictly separated.
I put and .editorconfig file ...
1
vote
2
answers
183
views
How to easily and quickly apply custom indentation format rule to selected Pascal/Delphi code?
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 ...
-1
votes
1
answer
29
views
How to revert auto formatting changed lines and save the file
Actions on save -> checked,
Reformat changed lines -> checked
Optimize imports -> checked.
This works excellently most of the time, but sometimes I want my own formatting to remain.
I seem ...
0
votes
2
answers
218
views
VSCode adds unwanted extra spaces on enter
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 ...
0
votes
0
answers
51
views
How to prevent Vue extension from "fixing" my code?
I'm experiencing an issue where "unreachable code" in a Vue/TypeScript file is automatically deleted on save. (A pretty shocking behaviour, often I'm temporarily adding a "return false&...
2
votes
0
answers
34
views
Eclipse indenting of nested HTML tags in Javadoc comments
Suppose I have Javadoc comment with:
/**
* <ul>
* <li>stuff</li>
* <li>stuff</li>
* </ul>
*/
When I run any of the eclipse formatting methods on ...
1
vote
1
answer
241
views
Why won't my C# code format correctly in Visual Studio 2022?
Even when I use the shortcut Ctrl+K Ctrl+D (Or Edit>Advanced>Format Document) in VS 2022, this C# code won't format properly:
Why won't the Visual Studio 2022 formatter fix these issues? How ...
7
votes
2
answers
254
views
How to prevent Delphi from formatting a code block?
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....
1
vote
0
answers
37
views
Is it possible to achieve JetBrains-like type alignment with SQLFluff?
I’m using SQLFluff for formatting SQL files and trying to replicate the behavior of JetBrains IDEs where types are perfectly aligned under each other, and constraints (e.g., NOT NULL) dynamically ...
0
votes
1
answer
66
views
SQL formatting in DataGrip
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 = ...
0
votes
1
answer
35
views
Broken BraceWrapping in clang-format in presence of an empty macro
I have the following code
enum MyFlag SOME_EMPTY_MACRO( ARG )
{
MyEnumValue = 1 << 1 //!< ...
};
In my clang-format, I have BraceWrapping.AfterEnum: true
This always get transformed to (...
0
votes
0
answers
57
views
Clang format option to "explode" function declarations
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'...
0
votes
0
answers
45
views
auto formatting using yapf to put parameters on multiple lines in condensed format
Related to this. But instead of putting all arguments on single line, I want to put them onto multiple lines in condensed form.
Basically I want to transform:
def f(arg1: typ1, arg2: typ2, ..., ...) -&...
0
votes
1
answer
15
views
How to disable irregular tab shading in VS Code
In VS Code in Python I have my autoformatter set to indent function parameters in-line if I make a line break between them, like so:
However something else is making that shading on line 84 and I can'...
0
votes
0
answers
53
views
Shortcuts for auto indentation not working
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 ...