Skip to content

rh-uxd/patternfly-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Jun 23, 2020
33e7247 · Jun 23, 2020

History

54 Commits
Feb 6, 2020
May 4, 2020
Jun 23, 2020
Jun 23, 2020
Apr 29, 2020
Feb 6, 2020
Feb 6, 2020
Apr 29, 2020
Feb 21, 2020
Feb 6, 2020
May 4, 2020
Jun 23, 2020
Jun 23, 2020
Mar 24, 2020
Feb 6, 2020
Jun 23, 2020
May 4, 2020
May 4, 2020

Repository files navigation

PatternFly Code snippets

What's in this extension

Demo: https://youtu.be/StWxQeFj38U

This extension adds a new view container to the sidebar with the PatternFly icon.

Contained within are code fragments for components that can be inserted into the open editor. The components are organized by type (component/layout) and grouped by category. There is a global configuration setting that also includes documentation in code comments when a component is added. The link icon on the category header will take you to the documentation page for each component category as well.

The extension also makes the code snippets available through code completion. If you type the configured trigger string (which is configurable in the extension settings), e.g. #Alert you will see a dropdown with components that match the text.

The default triggers are:

  • !: Show react snippet completions (available by default in: typescript, typescriptreact, javascript, javascriptreact, markdown)
  • @: Show core snippet completions (available by default in: html, markdown)

Both the trigger string and the file types are configurable in the extension settings.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published