Skip to content
Alok Singh edited this page Nov 6, 2023 · 3 revisions

fm code

Open site in vscode.

Usage:

$ fm code [OPTIONS] SITENAME

Arguments:

  • SITENAME: Name of the site. [required]

Options:

  • --user TEXT: Connect as this user. [default: frappe]
  • -e, --extension TEXT: List of extensions to install in vscode at startup.Provide extension id eg: ms-python.python [default: dbaeumer.vscode-eslint, esbenp.prettier-vscode, ms-python.python, ms-python.black-formatter, ms-python.flake8, visualstudioexptteam.vscodeintellicode, VisualStudioExptTeam.intellicode-api-usage-examples]
  • -f, --force-start: Force start the site before attaching to container.
  • --help: Show this message and exit.

Examples:

Open the site example in VSCode

fm code example

Open the site example with force start

fm code example -f

add more extension other than default

fm code example -e vscodevim.vim

Reference:

Clone this wiki locally