Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>fbsgen-vscodeNew to Visual Studio Code? Get it now.
fbsgen-vscode

fbsgen-vscode

dyu

|
123 installs
| (0) | Free
dev tools
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Generate (multiple) files using fbsgen-ds templates

The templates dir should placed in the root dir of your project

templates/hello/{{name}}.ts.stg

import "fbsgen/base"
import "fbsgen/dict"

p_block(p, module) ::= <<
«p_main_block(p, module, p.("name"), p.("dir_name"))»
>>

p_main_block(p, module, name, dir_name) ::= <<

export class «name» {
    
    constructor() {
        
    }
    init() {
        // TODO
    }
}
>>

templates/hello/{{name}}Foo.ts.stg

import "fbsgen/base"
import "fbsgen/dict"

p_block(p, module) ::= <<
«p_main_block(p, module, p.("name"), p.("dir_name"))»
>>

p_main_block(p, module, name, dir_name) ::= <<

export class «name»Foo {
    
    constructor() {
        
    }
    init() {
        // TODO
    }
}
>>
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft