欢迎访问 AI DO TOOL 网站

大小写转换

一键转换为全大写、全小写、标题式、句子式、驼峰、帕斯卡、蛇形与 kebab-case 共 8 种,每种独立复制。

全大写HELLO WORLD EXAMPLE TEXT
全小写hello world example text
标题式Hello World Example Text
句子式Hello world example text
驼峰式 (camelCase)helloWorldExampleText
帕斯卡式 (PascalCase)HelloWorldExampleText
蛇形 (snake_case)hello_world_example_text
短横线式 (kebab-case)hello-world-example-text

概念

编程世界充满命名规矩:CSS 喜欢连字符命名,Python 和 C 用下划线,JavaScript 函数偏好驼峰式。本工具把你这段杂乱文本同时给出八种流行写法,方便直接拿来当变量名或标题。

描述与趣事

CSS 为什么用连字符?早期浏览器对空格处理得很糟,而连字符在 URL 里比下划线更友好。今天 kebab-case 是每个前端开发者每天打上万次而不自知的写法。

历史与由来

蛇形命名来自 1970 年代的 C 与 Unix 传统;驼峰式随 Smalltalk 流行,后来在 Java 中发扬光大;帕斯卡式命名源自 1980 年代 Pascal 语言的命名习惯;kebab-case 则在 1990 年代中期随 CSS 起飞。

相关关键词

大小写转换驼峰命名帕斯卡蛇形命名kebab-case
Keep a kind heart, hold integrity as your foundation, and cherish warm love; may the world know peace and humanity live in harmony.
持善良之心,守正直之本,怀温暖之爱;愿世界和平,人间祥和。