kongondo

Visual Studio Code for ProcessWire Developers

Recommended Posts

thx @Peter Knight don't know what the benefit of another program should be... I like to have everything in the editor and see everything live while I'm working on the code:

5a5f29cf7b582_2018-01-1711_45_02-screenshot.thumb.png.cbae05d84ff2235048e2f06992461aee.png

only thing missing is a proper way to push changes to a pw site... but that's part of the roadmap thread (of course it is possible, but as mentioned there I think it is a lot more complicated to achieve than I am used to by processwire easiness).

Share this post


Link to post
Share on other sites

looks interesting!

so @kongondo don't you use vscode git at all or do you use vscode git for simple tasks (like shown in my screenshot) and sourcetreeapp for more complex ones?

thx

Share this post


Link to post
Share on other sites

+1 for Tower!

Switched away from Sourcetree because it requires an account now. 

For now, Tower/Sourcetree/... are easier for me to handle all kinds of git-things apart from simple commit/push/pull like for example: rebase, stash, squash, ... and it is visually nice.

I also use vs code. It is still nice to browse diffs in it or just to have a convenient second place to commit/push.

  • Like 3

Share this post


Link to post
Share on other sites
1 hour ago, blynx said:

+1 for Tower!

Switched away from Sourcetree because it requires an account now. 

 

Completely understand if you don't wish to create accounts for the sake of it. 
I happen to use Bitbucket quite a lot as well, which integrates well with Sourcetree since they share the same maker.



 

Share this post


Link to post
Share on other sites

Yep, stumbled upon gitkraken, too. I don't know - If I have the choice I prefer native applications / applications with a more native looking UI. That's also why I don't use GitHub desktop. 🤷‍♂️

Share this post


Link to post
Share on other sites
On 17/01/2018 at 9:24 PM, bernhard said:

looks interesting!

so @kongondo don't you use vscode git at all or do you use vscode git for simple tasks (like shown in my screenshot) and sourcetreeapp for more complex ones?

thx

Oops, forgot to respond..

I don't use VSC git at all. One, I was already used to sourcetree (I tried others but they never worked for me). I feel the VSC git interface looks a little bit cramped. I guess I am also a bit jittery I'd make mistakes in there. In a sense, I don't want a swiss army knife in this case. I use VSC for the text side of things and sourcetree for what it was meant to be; a git app :).

 

  • Like 2

Share this post


Link to post
Share on other sites

So do none of you guys use the command line for git? Using desktop apps instead?

Share this post


Link to post
Share on other sites
10 minutes ago, SamC said:

So do none of you guys use the command line for git? Using desktop apps instead?

For me it's a mix. I really like a GUI for visually reviewing the code changes in all files before committing.

But for checking out and pulling updates from other (not my) repos, I use the command line.

  • Like 1

Share this post


Link to post
Share on other sites
18 minutes ago, adrian said:

For me it's a mix. I really like a GUI for visually reviewing the code changes in all files before committing.

But for checking out and pulling updates from other (not my) repos, I use the command line.

I guess I haven't been doing anything complex enough to need a GUI. Just stuff like this:

https://confluence.atlassian.com/bitbucketserver/importing-code-from-an-existing-project-776640909.html

Forced myself away from dropbox and now have to use git on my two computers in order to sync my work. Otherwise I would have just kept putting it back.

It's been interesting to say the least. Cool progress though!

Share this post


Link to post
Share on other sites

If anybody of you like me totally missed the markdown preview of vscode just click the preview icon on the top right:

md-dynamic-preview.gif

  • Like 1

Share this post


Link to post
Share on other sites
57 minutes ago, bernhard said:

If anybody of you like me totally missed the markdown preview of vscode just click the preview icon on the top right:

I've been using the Auto-Open Markdown Preview extension. Works a treat. Only problem I have with it is that it does not auto-close the preview when the markdown file is closed.

  • Like 1

Share this post


Link to post
Share on other sites

I'm been using VSCode for the last 9 months or so and I love it. I'm mostly a Javascript developer so it does fit in my alley but I've had success with using it with PW. 

On 1/17/2018 at 10:49 AM, bernhard said:

only thing missing is a proper way to push changes to a pw site... 

2

The little circle/refresh symbol in the bottom left  allows you to push your changes to Github/Gitlab etc. Or you can use the command palette to "Git Push". Works a treat with Continuous Interaction. 

There's also a remote FTP plugin which lets you sync which I've used a couple of times on legacy projects. 

  • Like 2

Share this post


Link to post
Share on other sites
4 hours ago, StanLindsey said:

The little circle/refresh symbol in the bottom left  allows you to push your changes to Github/Gitlab etc. Or you can use the command palette to "Git Push". Works a treat with Continuous Interaction. 

There's also a remote FTP plugin which lets you sync which I've used a couple of times on legacy projects. 

Thx, I know all those options. Don't know exactly what I meant with my comment ;) I think I was talking about some kind of staging/dev setup... Not related to vscode of course :)

  • Like 1

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?