kongondo

Visual Studio Code for ProcessWire Developers

Recommended Posts

3 hours ago, kongondo said:

ah, thx - I have been using it some weeks ago but had no intellisense at that time so it was not that helpful. thx, this extension looks better on first sight than the one I linked

Share this post


Link to post
Share on other sites
On 10/3/2018 at 4:28 PM, bernhard said:

I guess it is not possible to work via SSH FS at all, because the extension indexes all LOCAL workspace files on startup and then creates the intellisense.

from this github issue: https://github.com/bmewburn/vscode-intelephense/issues/135

Quote

Yes it is, Ben is currently working on implementing indexing server side which is requiring some additional architectural changes in the intelephense library.

So in a future release intelephense might also work server-side (if I understand this comment correctly)...

  • Like 1

Share this post


Link to post
Share on other sites

Any recommendations for a good color highlighting plugin? I want one that highlights the colors in my code (eg #afafaf should get grey), but I also want one where I can open a color picker. Or maybe two plugins? The ones that I have does not seem to work in .php files, for example.

Share this post


Link to post
Share on other sites

Thx @AndZyk,
 

14 hours ago, AndZyk said:

The build in color highlighting and picker should work fine in CSS or HTML files.

Hm... There are situations where I also need it in my php or otherwhere. I'm now using this one: https://github.com/leehooi/vs-color-picker The nice thing about this is that you can pick the colors also from other applications (like an open browser's website background).

14 hours ago, AndZyk said:

Sorry for not being more helpful, I usually try to avoid using inline styles😉 

Yeah, good point. The reason for that is that I create the classes dynamically:
ncigXN8.png
g4YluuB.png

I then have the colorcode in my php wherever I need it and I can also create colors based on user input (color picker field) and have the proper classes for my RockGrid 🙂 

 

Share this post


Link to post
Share on other sites

I have tried this extension before, but didn't like that it creates HTML tags too. Most of the time I just want the autocompletion of UIkit classes. Hopefully this will be added or someone else makes an extensions similar like the one for Sublime Text.

But if you don't have an issue with that, it is a good extension. 😉

  • Like 1

Share this post


Link to post
Share on other sites

Didn't see that and haven't tried it yet. But I guess you're right... I'll test it the other days 🙂

Share this post


Link to post
Share on other sites

Does anybody of you know how one can make VSCode not display pw markup regions in alerting red?

xmkoJDR.png 

Share this post


Link to post
Share on other sites
19 hours ago, Zeka said:

Thx, unfortunately this did not really help. It seems that this has something to do with the color theme. Some themes do invalid items red, others don't. Unfortunately I was not able to create a custom version of the default dark plus theme that only overrides the invalid token color setting. It seems to be not as easy as setting the option in the user settings. And copying the theme and overriding did not work for me.

Has anybody of you tried this before with success?

Share this post


Link to post
Share on other sites

Tried that now but still have red <region> tags. Which version of VSCode are you running? I think there was an update that changed the tag grammar some time ago...

Share this post


Link to post
Share on other sites

The latest version. But now I have noticed that with Material Theme that known HTML tags are highlighted red and custom HTML tags with a different red. 😀

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By FrancisChung
      PHPStorm for PW Devs
      This thread is a place for ProcessWire developers who use PHPStorm to share their experience, tips, frustrations, solutions, code snippets and generally discuss all things PHPStorm.
      From Wikipedia:
       
      Thanks @kongondo for the Visual Studio Code post earlier.
    • By szabesz
      CodeRunner 2 is on sale at MacUpdate: https://www.macupdate.com/app/mac/38362/coderunner
      Mostly I use it for writing shell scripts, mocking up algorithms in PHP, JavaScript/jQuery. But is also supports other programming languages as well.
      https://coderunnerapp.com/
      "An advanced, highly flexible, and easy-to-use programming editor for your Mac. CodeRunner supports a large number of languages, and delivers big IDE features while remaining lightweight and clutter-free."
    • By pwFoo
      I moved from netbeans to atom. Tested lighttable, brackets and visual studio code, but at the moment I take a look into web based IDEs. Most are based on ACE editor (alternative could be codemirror) like chrome apps caret or super neutron drive (both with chrome dependency at the moment). 
      Recently I looked into cloud9, codetasty, ... and codiad.
      Codiad is open source. php / js based and works fine. Autocomplete feature and suggestions should be improved, but it's ok. Because it's open source you can download it from github repo or test it as a docker container (wernight/codiad image for example). 
      Codytasty is a cloud hosted solution with a really awesome autocomplete / suggestions for php, js and html! But it isn't open source (there is a free to use hosted version with limited workspaces and features).
      At the moment I testing codiad@docker, but use still atom for coding and searching for the best IDE out there *g*
       
      What do you think about IDEs and the new trend to web based IDEs?
    • By benbyf
      HELLO! Anyone happen to be using Atom the open source IDE from github? I've been using it for about a year now and other than the occassional crash it's been great.
      I was wondering if anyone out there has proccesswire specific snippets, syntax hightlighting or autocomplete package they've created to add their PW work? If not would anyone be interested if I made one, and what would be most useful?