Provide punchlang code assistance to visual code editor.
- Clone this repo
- Build plugin
npm install -g @vscode/vsce
npm install
vsce package
- Install plugin
code --install-extension punch-vscode-plugin-1.1.0.vsix
code --list-extension
-
Reopen your VSCode
-
Extension is activated when you first access a Punch file
-
NodeJS >= v16.14.0 & npm >= 8.5.0 (Properly install NodeJS & npm through nvm)
-
Python >= 3.6.8 (Properly install Python using Pyenv)
-
VSCode >= 1.74.0 (Properly install VsCode)
-
Remove all settings already assign to punch files (File/Preferences/Settings)
-
Syntax Highlight
-
Snippets for Punch operators
-
Snippets for Java
-
Punch file formatter
-
Run Test annotation
-
Create Untitled Punch file
-
Create Untitled Punch class file
-
"F7"
: @Test annotation -
"F2"
: Create Untitled Punch file -
"F4"
: Create Untitled Punch class file -
"ctrl + shift + I"
: format document -
"ctrl + shift + P" + Format Document
: format document -
"ctrl + shift + P" + Create New Punchlet
: open new Untitled Punch file -
"ctlr + shift + /"
: comment selected lines or current line (if no selected)
Remark :
"ctrl + shift + P"
command is equivalent to "F1"
-
cef
-
cidrmatch
-
csv
-
findByKey
-
grok2
-
kv
-
print
-
raise
-
tuple
This extension contributes the following settings :
-
Punch-formatter: Indentwidth : number of spaces used for indentation (default = 1)
-
Punch-formatter: Python Path : optional custom path to python executable (requires restarting vscode)
-
Punch-formatter: Formatter Path : optional custom path to punch formatter (requires restarting vscode)
-
Punch-puncher: Puncher Tag : Puncher docker image tag
All PunchPlatform software, documentation, resources are Copyright (c) Thales Services SAS, France 2015-2021. All rights reserved