Skip to main content
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 ...
Oodini's user avatar
  • 1,421
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 ...
user5005768-hd's user avatar
-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 ...
Bogdan Pop's user avatar
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 ...
Nicolas Bechstedt's user avatar
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&...
Steve Bennett's user avatar
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 ...
Harald's user avatar
  • 5,225
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 ...
Mehdiway's user avatar
  • 10.7k
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....
Normand P.'s user avatar
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 ...
Andrew's user avatar
  • 11
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 = ...
e1s's user avatar
  • 375
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 (...
Denis Rouzaud's user avatar
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'...
okaycoolneat's user avatar
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, ..., ...) -&...
Sourav Kannantha B's user avatar
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'...
BBrooklyn's user avatar
  • 418
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 ...
João Bravo's user avatar

15 30 50 per page
1
2 3 4 5
111