Dear All,
It's been a long time since I wanted to do this extension for JAL to replace Jaledit.
One of the main problems that had to be solved was cross platform compatibility which is now possible through vscode.
With real big jal include files, Jaledit was crawling and there were issues with file association and permission which resulted in crashing of jaledit on editor preferences unless it warun with admin rights
This is not a perfect solution yet as there are many more features to be implemented to have all functionality of jaledit.
But the following features work very well
- Syntax Highlighting
- Fast opening and saving of files irrespective of the size.
- Linux and Windows support
- Code folding
- Auto completion ( More work needs to be done to have functions/procedures included from include files)
- Code Snippets ( Only very few are added, but not very difficult to add)
- Compiling to Hex file
- Ctrl-Click to go to error line ( It doesn't go automatically)
- Searching/Replacing any word within files and across folder
- Direct Github Push/Pull/Diff other commands
- Side by side View and file comparison
- Theme selection/switching
- Folder/explorer view
Some of the main features not in the extension
- Code Explorer for include files,procedures,functions,variables,constants,aliases
- Opening include files with Ctrl-Enter
- Auto Backup with time stamp/compilation
- Backup project as zip file
- Go to error line after compilation
- Running programmer on successful build
- Serial Terminal
- Compile/Program buttons/keys
- Detecting PIC name from code and passing it as variable to Programmer executable
- Set file as Active JAL file and compile that irrespective of file you are editing
Requirements & Installation Process:
- Download,install and run Visual studio code from https://code.visualstudio.com/download
- Press Ctrl-Shit-X to invoke the Extensions and search for JAL (or trying to open a JAL file will also prompt to install the extension)
- Click Install to add the extension to vscode
- Set the path to your jal compiler exe and library file path by clicking the gear icon in extension manager and selecting Extension Settings (It's also possible by going to editor preferences and searching for JAL)
- Press Ctrl-Shift-P and Type/select "Tasks:Open User Tasks''.
Select Others (Example to run arbitrary command).
In the opened tasks.json paste the following code
{
// prefilled tasks.json for compiling a JAL file
"version": "2.0.0",
"tasks": [
{
"label": "Compile JAL File",
"type": "process",
"command": "${config:jal.paths.exePath}",
"args": [
"${file}",
"-s",
"${config:jal.paths.LibPath}"
],
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Open any JAL file and press Ctrl-Shift-B to build the JAL file and you are ready to rock !
________________________________________________________________________________________________________________________________