• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 5 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

VS Code extension that lets you open a CSS Flexbox cheatsheet directly in the editor.

CSS Flexbox Cheatsheet (link)

VS Code extension that lets you open a flexbox cheatsheet directly in the editor.

Features

The cheatsheet can be opened in a few ways:

  • Press Ctrl + Shift + P (Win, Linux) / Cmd + Shift + P (Mac) and search for the Open CSS Flexbox Cheatsheet command.
  • Press Ctrl + K K (Win, Linux) / Cmd + K K (Mac) keyboard shortcut.
  • Hover any display: flex declaration and click the Open CSS Flexbox Cheatsheet link in the popup.

Besides the Open CSS Flexbox Cheatsheet link in the hover popup, there’s also an image shown for each flexbox property. This aims to make it easier to understand how each property works without opening the cheatsheet. This is available for the following file types:

  • CSS
  • Less
  • Sass
  • Scss

Most properties also have interactive playgrounds that are part of the cheatsheet.

Settings

After opening the cheatsheet, you can select the directionality to be used in the interactive playgrounds. This is especially useful for languages that write from right-to-left (e.g. Arabic). Learn more.

Font and colors

The colors of the cheatsheet automatically adapt to the selected theme. The font is based on the user’s preferred font.

Support my work

If you find this extension useful and would like to support my work, you can buy me a cup of tea. Thank you!

Buy Me A Cup Of Tea

Demo

Using the Open CSS Flexbox Cheatsheet command

Demo using "Open CSS Flexbox Cheatsheet" the command

Clicking the Open CSS Flexbox Cheatsheet link on hover

Demo opening the cheatsheet by clicking the "Open CSS Flexbox Cheatsheet" command

Trying the interactive playgrounds

Trying the interactive playgrounds

Changing directionality in the interactive playgrounds

Demo changing directionality

Showing an image on hover

Demo showing an image on hover

Credit

The cheatsheet in this extension is based on the excellent Flexbox Cheatsheet by Darek Kay.