vscode-equality
vscode-equality copied to clipboard
Visual studio plugin that replaces content by eval() it
equality README
This plugin use eval(), custom functions, methods and external libraries to evaluate and replace javascript content
You can use multiples cursors
You can calculate
=2+2 //Press Ctrl + Enter
You can create personal vars
Add equality.vars in your users settings
"equality.vars": {
"name": "Javier Artero",
"company": "MarsBased SL",
"github": "https://github.com/javierartero"
}
Reload window
When you call a =e
you will be calling equality.vars
=e.plugin //Press Ctrol + Enter
Help
Now the plugin has a help system that will appear when it is not able to evaluate the content
You can open all the help elements from the method
=help
You can use the chroma.js
chroma.js is a tiny JavaScript library (14kB) for dealing with colors!
- read colors from a wide range of formats
- analyze and manipulate colors
- convert colors into wide range of formats
- linear and bezier interpolation in different color spaces
You can use the lodash.js
Lodash makes JavaScript easier by taking the hassle out of working with arrays, numbers, objects, strings, etc. Lodash’s modular methods are great for:
- Iterating arrays, objects, & strings
- Manipulating & testing values
- Creating composite functions
You can use the "faker.js"
faker.js is an external library generate massive amounts of fake
=faker.name.findName() //Press Ctrol + Enter
Custom functions and methods
rand(min:number = 0, max:number = 100)
Default arguments min:number = 0, max:number = 100
=rand(-100,100)
rgb(r:number, g:number, b:number)
hex(hex:string)
This method allows the use of shorthand '# ff0'