Re: [NTG-context] Installing VSCode extension?
Dear Alasdair McAndrew, I am using vscode in iMac, so my setting may not work for you. 1. First, find files for vscode in your TeX folder. In my case, /ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.* 2. In a homefolder, there is a hidden folder “.vacode”. Copy context/*.* to ./vscode/extensions/context/*.* 3. Open vscode and enable context-extension. Since it was long time ago, my memory may not be correct. However, I hope that it may give you an idea. Best wishes, Dalyoung
Am 30.07.2020 um 07:52 schrieb Jeong Dal
: Dear Alasdair McAndrew,
I am using vscode in iMac, so my setting may not work for you.
1. First, find files for vscode in your TeX folder.
In my case,
/ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*
2. In a homefolder, there is a hidden folder “.vacode”.
Copy context/*.* to ./vscode/extensions/context/*.*
3. Open vscode and enable context-extension.
Since it was long time ago, my memory may not be correct. However, I hope that it may give you an idea.
It might make sense to not copy the files but symlink the folder (then it automatically receives updates). i.e. ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context ~/.vscode/extensions/ Don’t know how symlinking in Windows works, though. HR
On Thu, Jul 30, 2020 at 12:25 PM Henning Hraban Ramm
Am 30.07.2020 um 07:52 schrieb Jeong Dal
: Dear Alasdair McAndrew,
I am using vscode in iMac, so my setting may not work for you.
1. First, find files for vscode in your TeX folder.
In my case,
/ConTeXt-homefolder/tex/texmf-context/context/data/vacode/extensions/context/*.*
2. In a homefolder, there is a hidden folder “.vacode”.
Copy context/*.* to ./vscode/extensions/context/*.*
3. Open vscode and enable context-extension.
Since it was long time ago, my memory may not be correct. However, I hope that it may give you an idea.
It might make sense to not copy the files but symlink the folder (then it automatically receives updates). i.e. ln -s $TEXROOT/texmf-context/context/data/vacode/extensions/context ~/.vscode/extensions/
Don’t know how symlinking in Windows works, though.
HR
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
Hi! To make a symlink worked well here, in the sense that I got a context extension in vs code, and when opening a context file it was recognized as such. I could go into the extension settings and enable color syntax. Questions: 1) Is there a way to get autocompletion on all context commands (not only the ones I have in the document)? If so, how? 2) Is there a nice way to compile the tex file from within vs code? As of now, I opened a terminal and compiled from that, but that feels like the wrong way of doing it. I'm on linux and with the latest standalone (lmtx if that matters). /Mikael
On Tue, 4 Aug 2020 14:38:05 +0200
Mikael Sundqvist
To make a symlink worked well here, in the sense that I got a context extension in vs code, and when opening a context file it was recognized as such.
I was able to install vscode extension by symlinking...
I could go into the extension settings and enable color syntax. Questions:
How to do that? I do not see such setting - see attached screenshot.
1) Is there a way to get autocompletion on all context commands (not only the ones I have in the document)? If so, how?
I've the same question?
I'm on linux and with the latest standalone (lmtx if that matters).
Same here. I also wonder about snippets, are there some? To write markdown, I can get great support with *any* editor - Emacs, Vim, Oni2, ST3(4) and same is true for PHP/HTML/CSS coding which I plan to do, but ConTeXt support and LSP features are not so great in comparison while I'd not like being forced to change (ConTeXt) markup due to editor-related issues. Anyone? Sincerely, Gour -- Even the intelligent are bewildered in determining what is action and what is inaction. Now I shall explain to you what action is, knowing which you shall be liberated from all misfortune.
On Thu, Dec 17, 2020 at 7:28 AM Saša Janiška
On Tue, 4 Aug 2020 14:38:05 +0200 Mikael Sundqvist
wrote: To make a symlink worked well here, in the sense that I got a context extension in vs code, and when opening a context file it was recognized as such.
I was able to install vscode extension by symlinking...
I could go into the extension settings and enable color syntax. Questions:
How to do that?
I do not see such setting - see attached screenshot.
1) Is there a way to get autocompletion on all context commands (not only the ones I have in the document)? If so, how?
I've the same question?
I'm on linux and with the latest standalone (lmtx if that matters).
Same here.
I also wonder about snippets, are there some?
To write markdown, I can get great support with *any* editor - Emacs, Vim, Oni2, ST3(4) and same is true for PHP/HTML/CSS coding which I plan to do, but ConTeXt support and LSP features are not so great in comparison while I'd not like being forced to change (ConTeXt) markup due to editor-related issues.
Anyone?
Sincerely, Gour
-- Even the intelligent are bewildered in determining what is action and what is inaction. Now I shall explain to you what action is, knowing which you shall be liberated from all misfortune.
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
To set the color theme, click the blue button "Set color theme". /Mikael
On Thu, 17 Dec 2020 07:51:34 +0100
Mikael Sundqvist
To set the color theme, click the blue button "Set color theme".
So, this is the only thing which can be configured? Sincerely, Gour -- Everyone is forced to act helplessly according to the qualities he has acquired from the modes of material nature; therefore no one can refrain from doing something, not even for a moment.
On Thu, Dec 17, 2020 at 10:40 AM Saša Janiška
On Thu, 17 Dec 2020 07:51:34 +0100 Mikael Sundqvist
wrote: To set the color theme, click the blue button "Set color theme".
So, this is the only thing which can be configured?
Sincerely, Gour
-- Everyone is forced to act helplessly according to the qualities he has acquired from the modes of material nature; therefore no one can refrain from doing something, not even for a moment.
___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net
___________________________________________________________________________________
It is the only way I know of but maybe someone else knows more? Best regards, Mikael
participants (4)
-
Henning Hraban Ramm
-
Jeong Dal
-
Mikael Sundqvist
-
Saša Janiška