13,155 questions
2
votes
1
answer
107
views
Cannot use Format on reflected object's property ToString
I can format an Int32, I1, as currency - it displays:
I1 = $31,742.
But I cannot format an Int32 property of a class whose PropertyInfo and whose value and whose format is determined by reflection. ...
0
votes
1
answer
66
views
Why does dart format code with three tabs?
I've got the dart formatter running on my code, and for some reason it insists on the following formatting:
String get display => switch (type) {
ListType.star => 'Starred',
...
1
vote
2
answers
75
views
Format Currency for given culture and currency ISO code
I want to format a number with a given culture and a given currency ISO Code. I was not aware that besides the position and number format also the currency symbol changes based on culture.
That's what ...
0
votes
2
answers
80
views
Highlighting excel cells based on matching other cells that meet a separate criteria
I have a spreadsheet that identifies highlights and gives text when a set of conditions are met.
Basic data sample is (Sorry, unsure how to make it look like it does in excel with formatting and ...
0
votes
2
answers
130
views
Struggling to understand how to print numerous columns with similar data
Basically, I need to print out random temperatures for each day of the year (1 through 365). It needs to be formatted like so:
How would I do this? I'm not exactly sure what this kind of data "...
0
votes
1
answer
119
views
MuleSoft DataWeave Date Time Formatting
Using input payload of
{
"Date": "2025-09-09T18:03:06.830"
}
I'm trying to get an output of
"2025-09-09T18:03:06.830Z"
I've tried this DataWeave
%dw 2.0
output ...
0
votes
0
answers
68
views
Can I get the Eclipse Java Formatter to properly handle variable declarator lists
Whenever, and only whenever, I have multiple field declarators in a list, I want this style:
private static final String
CONSTANT_STRING_1 = "foobar",
CONSTANT_STRING_2 = "...
2
votes
1
answer
42
views
Emphasizing asciidoctor literal parts
I'd like to to highlight a part of a literal/listing/source block "manually" in AsciiDoctor. Is there any way to do so?
E.g. I'd like to add a class or just a single "strong/b" to ...
1
vote
2
answers
127
views
What are the correct parameters and return types for std::formatter::format specialization?
#include <format>
#include <print>
#include <array>
struct Point {
int x = 0;
int y = 0;
int z = 0;
};
template <>
struct std::formatter<Point> : std::...
-1
votes
2
answers
102
views
Is there a way to "configure" formatting at compile time? [duplicate]
I have struct/class that formats numbers. I want to tune its formatting parameters how i like. And this means I "need"(could be not, if there's another much more clever way of doing it?):
&...
1
vote
1
answer
63
views
Changing the Font on part of the body of my email
I have the below script that works fine but I am wanting the four numbers and post code in the body (an example is 3260 TA4 33Q) to be bold and red but the rest is fine as it is.
I have read a lot of ...
3
votes
2
answers
92
views
What's the OCaml equivalent of C's printf("%.3s"), i.e, specifying a maximum width for a string argument?
In C, one can write:
printf("%.3s", "foobar");
To get foo printed as a result (that is, print the initial part of a string).
In OCaml, Printf.printf "%.3s" "foobar&...
0
votes
1
answer
75
views
Problem with formatting a cell to text in Excel
CellStyle textStyle = workbook.createCellStyle();
textStyle.setDataFormat(format.getFormat("@"));
Set<Integer> forceTextIndexes = new HashSet<>();
if ("LE_27"....
0
votes
0
answers
34
views
how to remove vertical lines in gutter after adding a change
I just recently reinstalled VS Code on my Mac. Before when I added changes from Explorer, the lines in the gutter would disappear. Now, after staging, the lines are still there. The only way to ...
0
votes
1
answer
115
views
Text-formatting: Replace tabs with spaces in text/config file and keep the pretty formatting / reformat it via script (Python or BASH)
not sure how to categorize the following issue, I thought about relating it to BASH or Python first, but actually it's rather language-independent imo...
Anyway, I was searching but couldn't find any ...
-4
votes
1
answer
98
views
Numbers format on Excel
I've got a job which I am not allowed to use SQL/BigQuery to analyze data, because of the compliance/data security, so I must download data from a dashboard.
In the dashboard I just can download in a ...
0
votes
0
answers
80
views
dart format of ternary operators in dart 2.7.0+
After upgrading dart to 2.7.0+ (2.8.0 has the same problem), a nested ternary operator is being dart formatted the following way:
final initialLocation = isAuthenticated
? AppRoute.root
:...
0
votes
0
answers
36
views
Preprocessor Indentation in Visual Studio 2022 C++
So I'm doing some preprocessor #ifdef statemnts in a header file to manage configurations which I am trying to tab indent to make a little more clear logically. The issue is whenever I type the #, it ...
2
votes
1
answer
185
views
Style a dataframe in notebook with indentation
I have a table, which I have read from a database. I want to display the table in a jupyter notebook, showing the elements of totals and subtotals indented. I want the end result to look like this
...
2
votes
1
answer
265
views
dotnet format respects some rules but not IDE0041
I am trying to use dotnet format cli command to enforce some rules on our code bases. I would like to remove unused using statements and also enforce the use of "is null" instead of "== ...
0
votes
1
answer
114
views
How do I transform a range of cells into literal string?
Excel automatically treats cells with number-alike content as Numeric cells, and some cells with function-alike content as Function cells, etc.
I want what I write into the cells to be treated as ...
1
vote
1
answer
123
views
openpyxl richtext format usage, whitespace usage
following code create a buggy excel file (bug when opening)
from openpyxl.cell.text import InlineFont
from openpyxl.cell.rich_text import TextBlock, CellRichText
from openpyxl.styles.colors import ...
1
vote
1
answer
34
views
Mangled formatting of ShouldProcess message
I'm trying to implement a -WhatIf flag in a RoboCopy script (swap user for your user profile):
[CmdletBinding(SupportsShouldProcess)]
param (
$Purge = $false
)
$RCCommand = "Robocopy C:\...
0
votes
0
answers
42
views
CLion autoformatting rules for mkdocs markdown files
Environment
I have a mkdocs project to write my documentation using markdown. I'm using CLion to edit and write the markdown files (since CLion is also my main development tool and I wanted to avoid ...
0
votes
3
answers
147
views
Polymorphic std::format that allows overriding
In order to use C++20's format capabilities with custom types, we have to provide template specializations of std::formatter for every type we want to format. The nice thing about this approach is ...
1
vote
1
answer
120
views
How to disable auto space formatting after if statements in VSCode? (C#)
My VSCode suddenly insert a space after an if statements.
I want to type it like this
if(something == null)
{
}
But it auto formatted to this
if (something == null)
{
}
How do I disable the auto ...
1
vote
2
answers
57
views
my userform is automatically changing the date format
my userform to sign out equipment is automatically changing the date to US format (e.g. mm/dd/yyyy), even though it is being completed using UK format date (i.e. dd/mm/yyyy). Is there something I ...
2
votes
1
answer
376
views
In Snowflake when I use Infer Schema with Template to create a table using the CSV headers as column names, the names are wrapped in double quotes
I am attempting to read in CSV files from an external stage without having to manually specify the field names. Snowflake's Template function along with Infer Schema does the job, however, the result ...
-3
votes
1
answer
82
views
Formatting a mathematical interval in excel
I have a column filled with values like:
[0,55553656475856 ; -8,34567323546546]
I would like to display them as
[0,56 ; -8,34 ]
so both numbers displaying only 2 decimal positions. Is there a ...
0
votes
2
answers
108
views
std::fmt::Display implementation does not get padded
I have implemented std::fmt::Display for my struct and I have followed the example from the Display's documentation almost verbatim. However, when I try to pad the string representation, it does not ...
1
vote
1
answer
54
views
In Powershell, how to control default onscreen output/format for scripts/functions that return complex objects?
Some cmdlets like Get-AzContext return complex objects that can be used down pipeline or stored within variables, but also display console output that is not passed along. Further this output is ...
2
votes
3
answers
96
views
Conditional Format Cells Fill based on criteria
I need to fill rows from A:D if Column A has text.
I tried a lot of codes.
I ended up recording macro. It fills only cells in Column A. How to replace "Selections" to a Range?
Columns("...
3
votes
1
answer
71
views
How to wrap paired lines of text in Flutter while keeping their alignment?
I'm building a Flutter widget that displays song lyrics with chords placed above the words (like on Ultimate Guitar) with a monospace font. I'm trying to handle automatic line-wrapping based on screen ...
-1
votes
0
answers
47
views
Change C# curly braces formatting in VS Code? [duplicate]
so i have been programming incorrectly for many many many years by now and cannot change my habits. the common etiquette for typing a function in c# looks like this where you put both curly braces ...
0
votes
1
answer
104
views
How do I enter a date in Applescript in order to create a calendar event?
Trying to script new calendar events for use with Raycast (which is limited in that it can't add 0 duration or all day events, can't add alarms.)
The following code results in
error "Calendar ...
0
votes
1
answer
100
views
How to convert datetime to local timezone in React.js? [closed]
I am currently using data from Jikan API. The datetime data looks like this:
"broadcast": {
"day": "Saturdays",
"time": "01:53",
...
0
votes
0
answers
45
views
Adding a visible vertical axis between categories in Pivot chart in Excel
I have a Pivot chart as shown below.
It has Scenario_Model and Gx.Region under x-Axis (Categories).
I want to add a clear visible distinctive line to differentiate the different scenarios. I have done ...
0
votes
0
answers
67
views
How to align multiple lines of text in Avalonia UI using variable-width font (Segoe UI)
I'm currently developing a macOS application using Avalonia.
This application displays information in the UI (specifically in a TextBlock with ViewModel), and at the same time, it writes the same ...
-1
votes
1
answer
48
views
Format a decimal with both leading and trailing 0's
Both ChatGPT & Copilot have failed me. I am seeking to add padding to a time that gives me two digits for whole seconds and three digits for fractional seconds.
So, given $time which is produced ...
0
votes
0
answers
38
views
How to check on command line Visual Studio/C++ code against .editorconfig rules?
My company would like to enforce coding rules to C++ code submitted to our continuous integration pipeline.
I can create a .editorconfig file, but how to ckeck it during the CI (Jenkins) ?
Visual ...
-1
votes
2
answers
297
views
FFmpeg, how to output AVIF image series instead of animated AVIF? [closed]
I want to convert a series of huge PNGs into AVIF.
ffmpeg -i 'img (%d).png' -c:v libsvtav1 -s 1280x720 .\lidl\img%d.avif
FFmpeg always outputs an animated AVIF. How to force it to output AVIF image ...
1
vote
1
answer
116
views
formatting single expression methods when saving a file
single expression methods
public void Method()
{
Expression;
}
need to format in
Method() => Expression;
0
votes
0
answers
27
views
Autosize Columns not honoring text width in Excel for mac
I have a basic table in Excel for Mac that is not honoring the size of the text within a cell when I autofit columns. It has something to do with the Theme, but I cannot find where to update the ...
0
votes
1
answer
35
views
In node.js given a filename how do you get its format and media type?
I want the output to be like image/png. type then followed by the extension. The filename doesn't include any information.
I tried basics such as mediainfo and ffprobe but one showed missing libraries ...
0
votes
1
answer
67
views
How do I get rid of the gap between two different vertical, animated dropdown menus?
I've been trying to make the UI of my profile/website look cleaner.
Previously, I asked for some help on how to make my drop-down menus have a smoother animation.
Now, it looks great on the web ...
0
votes
1
answer
182
views
how to reduce the line spacing for a text label in a gallery?
I am trying to reduce the line spacing for a text label that is inside a gallery. I don't want the label to show a scroll bar to navigate through each line of text, originally I have this:
Instead ...
0
votes
1
answer
149
views
Is there a way to store a template of interpolated string in C#?
I have this class called BaseMessage that contains string field Message:
public class BaseMessage
{
public string Message;
...
}
And I have another class ProcessMessage that derives from ...
0
votes
0
answers
125
views
string format a Decimal instance using an underscore as a thousands separator?
I can easily do this for floats using an f-string like this:
x = float(123456789.123456)
print(f"{x:_f}")
prints 123_456_789.123456 exactly as expected.
But if try the same technique for a ...
0
votes
0
answers
49
views
Format code (HTML) with Codepen Prefill Post
Using CodePen "POST to Prefill Editor". Everything works fine except for the fact the HTML is not formatted. Difficult to send formatting in a POST so wondered if there's a parameter that I ...
0
votes
0
answers
71
views
How to include Look Up values from One SharePoint list to another list while formatting a list view using json code
I have a SharePoint list [Project List] with few columns like Title,Project Start Date and Project end date.In another SharePoint list [Project Task list] and I have to format the list view to a Gantt ...