codealignment
codealignment copied to clipboard
Add support for Visual Studio Code
It might be possible to do this in a similar way to Sublime. But I plan on porting the entire Code Alignment code to Javascript for this.
This will hopefully mean the code base could be used with many more IDEs.
Hopefully after this feature is complete, making an extension for "Visual Studio Team Services" (Microsoft's new name for Visual Studio Online) and atom will be easy.
The Hiccup
One big hiccup I'm going to run into is regular expressions. Regexes have become a central part of Code Alignment to allow for maximum customisation.
Javascript and .NET's regexes have some differences (named groups the biggest).
I think that whatever I do there's going to be somethings which will work in one but not the other. I just want the gap to be as close as possible
As such I'm thinking a 3rd party regex library. http://xregexp.com/ looks more .NET regex compatible. So it's what I'm thinking.
I'm open to suggestions on this. The aim is:
- Highest compatibility with .NET's regexes as possible.
- Support for named groups
- Fast
- Open Source
- As non-restrictive licence as possible - preferably MIT.
Any news about this ?
Hi, Sorry about my silence on this (and my silence on things in general) Last year I unfortunately didn't have much free time to devote to Code Alignment, but I wanted to give a quick update.
I had hoped that this would be finished well before now, but again, I just haven't found the time to develop it as I wanted. I have played around with it a bit with promising results. The task doesn't seem too hard, it's just about finding the time to do it.
The plan is to start developing in the open fairly soon with hopes of having something to release in the first half of this year.
I'm not sure if I'll be using this repository or a new one for it. Current thinking is I'll keep it separate pre-release and merge it in for the first release - the code will be completely separate, but I want to keep releases in line and aim for feature parity.
As mentioned before Regexes will be interesting. Version 1 will probably use the native regexes with all the limitations that come with it, but there's no point in holding up a release for that.
Sorry again about the silence, and thanks to everyone who has contacted me here and in email with kind words, questions and feature suggestions. I take a lot of pride in knowing others love Code Alignment too.
I've just checked in the start of this to https://github.com/cpmcgrath/codealignment-vscode
I'm no expert at TypeScript, so if any tips/criticisms/pull requests will be appreciated.
The build server for this is up so it's easy to install the develop builds if you want to try it out.
https://ci.appveyor.com/project/cpmcgrath/codealignment-vscode/build/artifacts
This is pretty close to what I'm thinking for version 1.
Version 1 has been released!
https://marketplace.visualstudio.com/items?itemName=cpmcgrath.codealignment-vscode#overview
As there are many features missing and still to decide if/when to merge that project into this repository, I'm going to keep this ticket open.