Skip to content

What do you think about Visual Studio Marketplace? We are looking for feedback from developers like you! Take the survey

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

Tryton Snippets

Hodei Navarro

|
45 installs
| (0) | Free
Python snippets for Tryton ERP modules programming.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Version Install Downloads Ratings

VS Code Tryton ERP snippets

Python snippets features for Tryton ERP modules programming.

Installation

Visual Studio Marketplace

Launch Quick Open:

  • Linux: Ctrl + ⇧ + P
  • macOS: ⌘ + ⇧ + P
  • Windows: Ctrl + ⇧ + P

Paste the following command and press Enter:

ext install hodeinavarro.tryton-snippets

Snippets

See the current available snippets clicking the title.

Contributing

In order to contribute a new snippet completion you will need to follow the next steps:

  1. Create the necessary code.
type Class = {
	/* ... */
	myNewCompletion: 't!cmnc'
}

/**
 * ...
 */

const myNewCompletion: ClassSnippet = {
	key: 'myNewCompletion',
	prefix: 't!<myNewCompletion prefix>',
	body: ['My snippet completion!.'],
	description: 'Create a new class using PoolMeta as metaclass.',
}

export default [
	/* ... */
	myNewCompletion,
]
  1. Run the following command:

npm

npm run generate:dev

yarn

yarn generate:dev

pnpm

pnpm run generate:dev
  1. *Optional: Check the new completion works by opening a test-environment via the following commands and then opening a Python file:

macOS: ⌘ + F5

Linux/Windows: Ctrl + F5

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft