Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Remix Code SnippetsNew to Visual Studio Code? Get it now.
Remix Code Snippets

Remix Code Snippets

dylanblokhuis

|
1,393 installs
| (0) | Free
Speed up your Remix development with dynamic code snippets
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

remix-code-snippets

Speed up your Remix development with dynamic code snippets. Quickly create remix components using code snippets like rmx_fc_l with the following output:

import type { LoaderArgs } from "@remix-run/node"

export function loader(args: LoaderArgs) {

}

export default function ComponentName() {
  return (
    <div></div>
  )
}

Add additional code after imports

Fill in remix-code-snippets.additionalCodeAfterImports with e.g. import db from "~/services/db.server" and you get the following output:

import type { LoaderArgs } from "@remix-run/node"
import db from "~/services/db.server"

export function loader(args: LoaderArgs) => {

}

export default function ComponentName() {
  return (
    <div></div>
  )
}

Preview

Code snippets

Trigger Description
rmx_fc_a Functional component with action
rmx_fc_l Functional component with loader
rmx_fc_al Functional component with action and loader
rmx_fc_h Functional component with handle
rmx_fc_ha Functional component with handle and action
rmx_fc_hl Functional component with handle and loader
rmx_fc_hal Functional component with handle, action and loader

Extension Settings

This extension contributes the following settings:

  • remix-code-snippets.useLetInsteadOfConst: Handle, action and loader will be declared using let instead of const
  • remix-code-snippets.additionalCodeAfterImports: Add additional code after the import statement.

Release Notes

1.1.0

Convert to new Remix types

1.0.0

Initial release

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