VS Code Tryton ERP snippets
Python snippets features for Tryton ERP modules programming.
Installation
Visual Studio Marketplace
Launch Quick Open:
Paste the following command and press Enter :
ext install hodeinavarro.tryton-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:
- 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,
]
- Run the following command:
npm
npm run generate:dev
yarn
yarn generate:dev
pnpm
pnpm run generate:dev
- *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
| |