A janela da tua alma

Queria te dizer que mesmo que você nunca saiba que isso é para você, me basta a quase certeza que isso cruzará o teu caminho em algum momento, e você talvez leia e ache palavras bonitas, mas nunca…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




VS Live Share with some Delphi

Hi!

One of the cool features I was waiting last year for was VS live share. With this you can synchronize Visual Studio and Visual Studio Code for shared code exploration, building and debugging. Let’s try it out (using my favorite language)!

Test editors

There is a cool extension of VS Code called OmniPascal. It does syntax-highlighting and code completion. I use it very often for code exploration and some FPC console programs.

VS Live Share is a real-time collaboration platform integrated into Visual Studio products. As Microsoft explains it, it is like screen sharing without actually sharing the screen! We can do:

For our test purposes I wrote a “Hello World” application:

First of all we need to sign in on both computers:

Click this button

After that we can click “Share” in the same area and get a collaboration link to a created session. We need to send to save it somewhere, where no one can find.

For example, in a chat with yourself :)

After that we should click on this link on the other PC and new VSCode windows will pop up:

Live proof

The main feature of this problem that you can connect to an opened folder on one PC without having any data on another. All code files will be downloaded after connection and deleted after the session.

So, now I can edit something:

You see two cursors: one is “master” machine and the second is my tablet. So, it works pretty well :)

Now I want to compile my program from my tablet. For that, I need to open a read-write terminal session:

Step 2
Step 3: “read-write”

After some time the terminal pops up on both computers! I was so excited, really, I wanted to jump on my seat :)))) Exploring this is really fun!

Two terminals

Okay, let’s try:

Output from my tablet

Oh, cool. I compiled the application from my tablet. Actually, this works also when you don’t have a compiler at the second PC (obviously).

You can also share browser output and debugging (if it’s integrated with VS Code). I really like this new feature of VS Code. I really love this editor. Such features make modern IDEs more powerful and productive.

That’s all for today :)

P.S. Actually, we are 50 now! Thank you, it’s so cool :)

Add a comment

Related posts:

The Real Marriage

I know some people who have never been married and I know some people who have been married twice. I’m in the second category along with millions of other people around the world. In my home-country…

What school are you at and what year are you in?

I am a 1L Dual JD student at the University of Windsor, Faculty of Law and University of Detroit Mercy, School of Law! Before law school, I was a University of Toronto student completing an Honours…

The future of Crowdinvesting

SMARTeFunding is the first product of my newly founded startup. A SaaS that makes the creation of financial products used in Crowdinvesting a lot easier and cheaper. Here I will outline where I…