Page 1 of 1

Visual Studio Code

Posted: 30 Apr 2015, 01:08
by jNizM
Visual Studio Code (code.visualstudio.com)

Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.

Image

Re: Visual Studio Code

Posted: 30 Apr 2015, 01:50
by toralf
Cool, have you tried to write AHK scripts with it?

Re: Visual Studio Code

Posted: 30 Apr 2015, 02:27
by jNizM
Not yet.

[edit]
Since there is no Syntax Hightlight yet, no.

Re: Visual Studio Code

Posted: 11 Sep 2015, 19:03
by henrywalker
Hey guys! I've recently installed Visual Studio Code. I need to use it for TypeScript, but my hotstrings won't work on that software.

I have no problem with FlashDevelop, Brackets, Sublime, etc.

Examples:

:?*:dqñ::""{Left}
:?*:qñ::''{Left}
:?*:pñ::(){Left}

Those hotstrings go ahead and delete the input (i.e. pñ) and then go straight to {Left}, without entering the text I need (in that case parentheses).

One may say that it's the combination of :*?:, but other hotstrings like :*:hdñ::1080p have a similar effect. In this case hdñ is deleted, but "1080p" is not added.

I've already tried running both VSC and the script with admin privileges. I believe it has to do with the fact that VSC has so many keyboard shortcuts, and that "editor.autoClosingBrackets", which I disabled to no avail.

I'd really appreciate your help, since I have carpal tunnel syndrome =s

Cheers!

Re: Visual Studio Code

Posted: 12 Sep 2015, 07:13
by haichen
After updating VSC the hotstrings are working (about says:V 0.8.0, Shell 0.27.3 Renderer 43.0.2357.65, Node 1.6.3)

Re: Visual Studio Code

Posted: 12 Sep 2015, 10:43
by henrywalker
Thanks for your response! I updated to 0.8.0 and it works a little better, but it's still unusable with my hotstrings.

E.g.:

Hotstrings like these work perfectly
::jñ::javascript
:*:yñ::2015

Hotstrings like these...
:*:pñ::(){Left}
:?*:pñ::(){Left}

...execute like this: {Left}()
which end up in stuff like: callFunctio()|n
(with '|' being the cursor position)

And hotstrings like these delete the input and add nothing:
:*:hdñ::1080p

I guess I'll have to wait for VSC v1.0

Re: Visual Studio Code

Posted: 18 Nov 2015, 20:46
by Coco-guest

Re: Visual Studio Code

Posted: 18 Nov 2015, 23:58
by joedf
Really cool :+1:, however I feel like they're just rewritting another editor which they will eventually deprecate and create a new one...
and so on... It just seems like Microsoft is never satisfied or never satisfies haha for that matter ;)

Re: Visual Studio Code

Posted: 11 Jan 2016, 13:58
by bjarteao
Anyone have any ideas to why Visual Studio Code doesn't work with simple text replacement?

Like @henrywalker I have some simple text replacements, like this:

Code: Select all

:?*:btw::by the way
They work everywhere except in Visual Studio Code. I have the same exact text replacements in Keyboard Maestro for OS X, and they don't work there either.

It's obviously something wrong with VSCode and not AutoHotKey (or Keyboard Maestro), but I would love to find out why it happens and if there is a way to get around it.

Re: Visual Studio Code

Posted: 11 Jan 2016, 14:29
by joedf
I've never used it. I imagine there's a "wannabe" IE control?

Re: Visual Studio Code

Posted: 16 Oct 2017, 23:10
by grrrrinaldi
I had an issue with Visual Studio itself, where I was running as Administrator so it wouldn't let me do certain things with AHK. Once I ran AHK as an Administrator it worked just fine.

This post can help set that up: http://www.thewindowsclub.com/autostart ... ws-10-make

Hope this helps.