Skip to content
Xieyt edited this page Apr 26, 2024 · 3 revisions

fm code

Open bench in vscode.

Usage:

$ fm code [OPTIONS] [BENCHNAME]

Arguments:

  • [BENCHNAME]: Name of the bench.

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
  • -f, --force-start: Force start the bench before attaching to container.
  • -d, --debugger: Sync vscode debugger configuration.
  • -w, --work-dir TEXT: Set working directory in vscode. [default: /workspace/frappe-bench]
  • --help: Show this message and exit.

Examples:

Open the bench example in VSCode

fm code example

Open the bench example with force start

fm code example -f

Add custom extension other than default

fm code example -e vscodevim.vim

Sync Vscode Debugger configuration

fm code example -d vscodevim.vim

Reference:

Clone this wiki locally