Giter VIP home page Giter VIP logo

property-name-changer's Introduction

property-name-changer

Change your property name easily!

Use:sparkles:

Select your string and use the following commands.

Function Example Command Keybindings
底杠转驼峰 property_name => propertyName varname.toHump ctrl+shift+1
驼峰转底杠 propertyName => property_name varname.toBottomLine ctrl+shift+2
JSON底杠转驼峰 { "property_name": "value" } => { "propertyName": "value" } varname.toHump ctrl+shift+3
JSON驼峰转底杠 { "propertyName": "value" } => { "property_name": "value" } varname.toBottomLine ctrl+shift+4
JSON生成interface {"title": "test my interface"} => interface YourNameInterface { title:string } propertyNameChanger.toType ctrl+i
JSON生成转义函数 {"my_title": "test my interface"} => export function yourSelector(data: any): any { return { "myTitle": data.my_title }} propertyNameChanger.toBottomLineSelector(toHumpSelector) ctrl+shift+b(h)

Schedule:pencil:

  • 根据逗号和分号确定对象字段名,并且仅更改等号或冒号前的字符串,如果没有可区分的符号,则给出提示。

    Determines object fields name based on commas and semicolons, and only changes the string before the equals or colons.

  • 每次转换type时皆生成一个字段名映射的selector函数。

    Generate a selector function for field name mapping every time when type is converted.

Undetermined:pushpin:

I called this project propertyNameChanger in the outset.But it will do more. So maybe call it fields-generator? I am not sure of this.

Installation:package:

Open your VSCode and search propertyNameChanger in extensions store.

Finally:camera_flash:

If you have any problem in using.Please send email or create an issue to me.Thanks!

Enjoy:see_no_evil:!

property-name-changer's People

Contributors

biglemontree avatar urnotzane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

wanghaooo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.