snake_case combines words by replacing each space with an underscore (_). In the all caps version, all letters are capitalized.
Questions tagged [snakecasing]
41 questions
1
vote
2 answers
Golang unmarshal JSON response, then convert the field name into snake_case
I want to get data with json tag whose source has PascalCase format and save it to my database. But before going into the database, I want to change the PascalCase format to snake_case format.
My question seems to be the opposite of this question…

A.Y. Wicaksono
- 161
- 1
- 10
1
vote
2 answers
ASP NET Dataset Column name format
I have an ASP.Net Core 3.1 project which serves APIs.
Some of my apis interact with an Oracle DB, to get some dataset
Here is a short example of what one of my api does:
[HttpGet]
[Route("api/GetMySpecificData")]
public IActionResult…

Sonny Jayet
- 434
- 2
- 7
- 24
1
vote
1 answer
Spring Boot Admin application - use of InstanceExchangeFilterFunction to convert snake_case to camel case for UI
I have an client api that use snake case naming strategy (custom ObjectMapper). Everything is set up properly and works great, but of course some things of SBA( version 2.3.1) UI doesn't work correctly(metrics, env...). I tried to implement…

Sonny
- 11
- 3
1
vote
2 answers
How to convert string to snakecase format in python
I made a function that can convert every string to snakecase but some of my string creating a problem. I used re module
ENTIRE CODE
import re
def toSnakeCase(string, restToLower : bool = False):
string =…

Kunal Tanwar
- 1,209
- 1
- 8
- 23
1
vote
0 answers
SpringBoot2: snake_case to camelCase payload mapping via xsd
My app was on Java8 Spring MVC and I'm migrating it to Java11 Spring Boot application.
I use Jaxb generated classes from an .xsd file for the model classes for Input JSON requests where one of the the incoming payload is snake_case based and the…

Ayush Kumar
- 833
- 2
- 13
- 30
1
vote
1 answer
How to convert snippet placeholder from CamelCase to snake_case
I would like to create a VS Code snippet where I input a part in CamelCase, and the same string is output in snake_case at some other place in the snippet.
Based on this SO post Here's my attempted snippet, but I have a trailing _ that needs to be…

Qortex
- 7,087
- 3
- 42
- 59
1
vote
1 answer
How to force Rails ActiveRecord to use CamelCase in queries, instead of snake_case
I am trying to create a rails app that will connect to a production SQLServer that is used by 3rd party software, so migrating the database is not an option.
I am able to connect to the SQL server without any issues (I used this guide for connecting…

User9123
- 55
- 7
1
vote
1 answer
Tapir, Circe, Snakecase
I have a code below
import io.circe.generic.auto._
import io.circe.Encoder
import io.circe.generic.extras._, io.circe.syntax._
implicit val config: Configuration = Configuration.default.withSnakeCaseMemberNames
case class User(firstName: String,…

Arjun Karnwal
- 379
- 3
- 13
1
vote
0 answers
How to fix JsonProperty issue in springboot model class
I am trying to change the attribute name to snake_case for the response in a model class. The Jsonproperty works fine with DB entity class, but not with the model class which does not have any DB entity mapped.
sample code which is not…

Rekha Priya
- 11
- 3
1
vote
1 answer
JSON snake case for library class
I have a class which is extending some library class.
How to make extending class properties to camel case.
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
class Test extends Abc {
}
// Library class which I can't modify
class Abc {
…

Ramesh Papaganti
- 7,311
- 3
- 31
- 36
0
votes
0 answers
How can I name Classes using Snake Casing?
While coding in Java, I prefer to use pascal case for my class names and camel case for objects.
For example:
TextView textView1, textView2;
But in C++, I prefer to use snake casing to name my variables. How can I do this for class names and object…

Elon Tusk
- 121
- 4
0
votes
0 answers
Convert camelCase to snake_case in Excel
How can I convert (without VBA) a camelCaseString into snake_case_string in Excel?
I only find topics about the reverse :)
Thanks a lot for your help

rbaaboud
- 131
- 1
- 8
0
votes
0 answers
PySide 6 snake_case does not autocomplete everything
I would like to use the snake_case feature from pyside6. I have the code working but I'd like to have my IDE autocomplete the methods as snake_case as well.
I found this post discussing the issue, and the answer linking to this QT page explaining…

Stefan Bonhof
- 1
- 2
0
votes
1 answer
GET method: How to convert snake_case query string to camelCase DTO
I use snake_case DB columns and camelCase DTO.
And our team want to use snake_case when we code React component.
Because of it, I added @JsonNaming on DTO. But it works when I send Json data, as you know.
Is there any annotation or setting similar…

loveloper.dev
- 299
- 1
- 4
- 9
0
votes
2 answers
How can I turn VSCode's sub word navigation off?
In a snake_cased language, I would want to navigate variablewise and not word_wise and also exclude sigils like @, % or / from these stops.
Example:
|$here_she_goes_again; #the pipe marks my cursor position
With one Ctrl+Right, I want to land on the…

Jan
- 6,532
- 9
- 37
- 48