Skip to content

VSCode extension that places brackets in every JSX prop you write

License

Notifications You must be signed in to change notification settings

ImExoOdeex/jsx-brackets

Repository files navigation

jsx-brackets README

This extention automatically adds brackets after writing = in JSX. Borrowed from webstorm.

Features

  • Automatically adds brackets after writing = in JSX or TSX files
  • Automatically removes brackets when you delete the last character of the object

What it does

Why it could be useful? Many developers use CSS-in-JS libraries to write styles. That means they are using props as styles and to make style prop responsive, often you'll need to use object inside prop. This extension makes it easier, faster and more comfortable to write styles.

Before After

This is how it works:

export function Header() {
	return (
		<Flex
			justify={"center"}
			direction={} // <--- just when you write `=`
			             // it will add the brackets and move the cursor into the brackets
		/>
			...
		</Flex>
	)
}

For more information

Enjoy!

About

VSCode extension that places brackets in every JSX prop you write

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published