Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.
/ hocus-pocus Public archive

VS Code extension that makes useful things appear out of the void (JS & TS) ๐Ÿ”ฎ

License

Notifications You must be signed in to change notification settings

nicoespeon/hocus-pocus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Important

This extension was a cool POC but has not been updated in a while and won't be in the foreseeable future. I'm officially archiving it ๐Ÿ˜‰

๐Ÿ”ฎโ€ Hocus Pocus

All Contributors Build Status

> Give a feedback

Hocus Pocus is a Visual Studio Code extension that creates useful things for you, in JavaScript and TypeScript.

Our goal is to make you more productive by creating boilerplate code faster.

Gif showing what the extension can do

Related projects:

  • Abracadabra, a VS Code extension that does automated refactorings in JavaScript and TypeScript

Features

All features are available through VS Code VS Code Quick Fixes.

Click on the lightbulb that appears next to the code ๐Ÿ’ก or use the shortcut Alt โ†ต.

Create Function

Create a function declaration from its call expression.

If you're the kind of developer who writes a function call as you'd like it exist, before implementing the function, then you'll love this. It's called program by wishful thinking. It's very common when you practice outside-in TDD.

Create Variable

Create a variable declaration from its identifier.

Just like "Create Function", this can be very useful if you tend to write variable usage before declaring the variable.

Create Class

Create a class declaration from its identifier.

Just like "Create Function", this can be very useful if you tend to write class usage before declaring the class.

Create Switch Cases

Create all missing cases of a switch statement made over an union type or an enum.

Very convenient when you need to generate a switch statement to handle each scenario. If some cases are already present, it will complete the remaining ones.

Release Notes

Have a look at our CHANGELOG to get the details of all changes between versions.

Versioning

We follow SemVer convention for versionning.

That means our releases use the following format:

<major>.<minor>.<patch>
  • Breaking changes bump <major> (and reset <minor> & <patch>)
  • Backward compatible changes bump <minor> (and reset <patch>)
  • Bug fixes bump <patch>

Contributing

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Hocus Pocus.

To help you get your feet wet and become familiar with our contribution process, we have a list of good first issues that contains things with a relatively limited scope. This is a great place to get started!

Contributors

Thanks goes to these wonderful people (emoji key):

Nicolas Carlo
Nicolas Carlo

๐Ÿ’ฌ ๐Ÿ’ป ๐Ÿ“–
๐Ÿ‘€ ๐Ÿค”
Tobias Hann
Tobias Hann

๐Ÿ’ป ๐Ÿค”๐Ÿ›

Nick Ebbitt

๐Ÿ’ป ๐Ÿค”

GrandSong

๐Ÿ›

This project follows the all-contributors specification.

Contributions of any kind are welcome!

License

๐Ÿ’ MIT