Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Malvid ComponentsNew to Visual Studio Code? Get it now.
Malvid Components

Malvid Components

stephane goeuriot

|
54 installs
| (2) | Free
Generates folder and file structure for malvid components
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CREATE MALVID COMPONENT

The easiest way to create folders for Malvid components within VSCode

This extension allows you to create a component inside an already and unique existing "components" folder.

  1. The workspace directory will be scanned for a "components" folder, ignoring "node-modules" and "dist" folder

  2. If multiples "components" folder are found your component will be created at the root of the directory.

At the end you get a directory that looks like this:

-component_folder/
--component_folder.njk
--component_folder.config.js
--component_folder.data.js

Getting Started

  1. Install this extension.

  2. Restart VSCode

Usage

Activate command (cmd + Shift + p ) or use the context menu (right click)

choose between "New Malvid Component" or "New Malvid Component With Config".

screenshot

settings

Using the extension settings "Malvid", you can manually define the glob pattern which specifies the 'components' folder's path

screenshot

Defaults keybinds:

  • f8 = New Malvid Component
  • f9 = New Malvid Component With Config

Features

Inside the "components" folder

We are looking for an existing "components" folder and components will be created there. If not, this falls back to the workspace root "vscode.workspace.rootPath"

Naming convention autocorrection

The name you enter will be converted in snake case.

i.e "loremFolder Ipsum" => "lorem_folder_ipsum"

Templates have preformated defaults

.njk file inherits the component name as class name

<div class="{componentName}">

</div>

.data.js files already have module.exports

module.exports = {

}

.config.js files already have module.exports

module.exports = {
	group: ''
}

🤙🏾 Thanks to Tobias Reich and Markus Morley

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft