Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux - Third Edition Alessandro Del Sole all chapter instant download
Visual Studio Code Distilled: Evolved Code Editing for Windows, macOS, and Linux - Third Edition Alessandro Del Sole all chapter instant download
com
https://ebookmass.com/product/visual-studio-code-distilled-
evolved-code-editing-for-windows-macos-and-linux-third-
edition-alessandro-del-sole/
OR CLICK BUTTON
DOWNLOAD NOW
https://ebookmass.com/product/international-fire-code-international-
code-council-series-2021-1st-edition-international-code-council/
ebookmass.com
https://ebookmass.com/product/international-zoning-code-international-
code-council-series-2018-international-code-council/
ebookmass.com
IBC International Building Code (International Code
Council Series) 2018 1st Edition International Code
Council
https://ebookmass.com/product/ibc-international-building-code-
international-code-council-series-2018-1st-edition-international-code-
council/
ebookmass.com
https://ebookmass.com/product/lets-code-it-2022-2023-code-edition-
shelley-safian/
ebookmass.com
https://ebookmass.com/product/international-swimming-pool-and-spa-
code-2021-1st-edition-international-code-council/
ebookmass.com
Visual Studio
Code Distilled
Evolved Code Editing for Windows,
macOS, and Linux
—
Third Edition
—
Alessandro Del Sole
Visual Studio Code
Distilled
Evolved Code Editing for Windows,
macOS, and Linux
Third Edition
Acknowledgments���������������������������������������������������������������������������������������������������xv
Introduction�����������������������������������������������������������������������������������������������������������xvii
v
Table of Contents
vi
Table of Contents
vii
Table of Contents
viii
Table of Contents
ix
Table of Contents
Index��������������������������������������������������������������������������������������������������������������������� 331
xi
About the Author
Alessandro Del Sole is a senior software engineer for a
healthcare company, building mobile apps for doctors and
dialysis patients. He has been in the software industry for
more than 20 years, focusing on Microsoft technologies
such as .NET, C#, Visual Studio, and Xamarin. He has been
a trainer, consultant, and a Microsoft MVP since 2008 and
is the author of many technical books. He is a Xamarin
Certified Mobile Developer, Microsoft Certified Professional,
and a Microsoft Programming Specialist in C#.
xiii
Acknowledgments
Thanks to Smriti Srivastava, Nirmal Selvaraj, Laura Berendson, and everyone else at
Apress for the opportunity, renewed trust, and the great teamwork on this book.
Special thanks to the technical editor Damien Foggon, who contributed to the
quality and accuracy of the content.
Special thanks to my wife Angelica, for her continuous and strong support.
xv
Introduction
One of the most common requirements in software development today is building
applications and services that run on multiple systems and devices, especially with the
continued expansion of cloud and artificial intelligence services, and of architectures
based on microservices.
Developers have many options for building cross-platform and cross-device
software, from languages to development platforms and tools. However, in most cases,
such tools rely on proprietary systems, which result in strong dependencies. Moreover,
most development tools target specific platforms and development scenarios. Microsoft
Visual Studio Code takes a step forward by providing a fully featured development
environment for Windows, macOS, and Linux that offers not only advanced coding
features but also integrated tools. These tools span across the entire application lifecycle,
from coding to debugging to team collaboration. The full tooling is consistent across
these languages and frameworks, natively or via extensions, so that developers share the
same experience regardless of the technology they use.
With .NET 7 and with .NET MAUI recently released, and with artificial intelligence
services becoming part of the modern software implementation, Visual Studio Code
becomes even more important to support cross-platform development on multiple
operating systems. In this book, developers with any skill level learn how to leverage
Visual Studio Code to target scenarios such as web, cloud, and mobile development
using the programming language of their choice. This book provides guidance on
building apps for any system and any device. This includes managing the application
lifecycle, as well as team collaboration.
xvii
CHAPTER 1
Note In this book, I refer to the product using its full name, Visual Studio Code, as
well as its friendly names, VS Code and Code, interchangeably.
1
© Alessandro Del Sole 2023
A. Del Sole, Visual Studio Code Distilled, https://doi.org/10.1007/978-1-4842-9484-0_1
Discovering Diverse Content Through
Random Scribd Documents
See brudder’s funny face, baby?
Slim
[Coming out, and speaking with boundless contempt.]
Dat’s de last time I tackle a job along wit’ a fambly man!
Bessie
Bill, yuh promised us a Christmas tree!
Pete
An’ we knowed yuh’d get us one!
Annie
Yuh said yuh was gonna get one, didn’t yuh, Bill?
Maggie
So we folleyed yuh all de way—
Pete
Yuh couldn’t lose us, Bill!
Annie
Not on yer life!
Pete
We wanted dat tree!
T’eodore
[A grand climax.]
An’ here it is!
[There is a chorus of delighted screams as the children
surround the tree.]
Bessie
Bill, what a peach of a tree!
Pete
Some tree!
Annie
Lookit de presents!
T’eodore
Golly, lookit de presents!
Maggie
See de boo-ful tree, baby?
[She makes the baby clap its hands.]
David
[Puzzled, as the children, shrilling their delight, descend
upon the gifts.]
Say, Santa Claus, I didn’t know you had a family.
Slim
[With infinite disgust.]
Kid, yuh said a mout’ful!
David
Are they all related to you?
Bill
[Not too modestly.]
Me eight brudders an’ sisters—count ’em. Bessie—an’ Pete—dey’re
twins. An’ Maggie—dat’s her holdin’ de baby—an’ T’eodore—an’
Annie—an’ Grover—an’ Woodrow—an’ Calvin—dat’s de baby.
David
Do they all come from the North Pole?
Bessie
[With injured American pride.]
W’at do yuh t’ink? We’re a lot of Polanders?
Bill
De Nort’ Pole? De Nort’ Pole’s warm next to w’ere dey come from.
My paw ain’t woikin’, an’ de landlord toined off de heat w’en I didn’t
pay de rent.
David
Rent? What’s rent?
Slim
[As Bill gazes appealingly at him.]
Yuh started dis. Yuh tell him.
Bill
Rent? Rent’s somethin’ yuh pay w’en yuh get money.
David
And when you don’t get it?
Bill
Yuh don’t.
Slim
[Becoming impatient.]
Say, what I wanna know is dis: is dis a kidnapin’ party, or is dis a kid
party?
David
What’s a kidnaping party, Santa Claus?
Bill
I’ll show yuh.
[He calls to the children.]
Hey, fellers, we’re gonna beat it.
Pete
Naw!
Bessie
We don’t wanna go, Bill.
Annie
We wanna play wit’ de presents!
T’eodore
Lookit de sleds!
Pete
An’ de boxin’ gloves!
Annie
An’ de railroad trains!
Bessie
An’ de trumpets!
Maggie
See de pretty flowers, baby?
Pete
[Parceling out the musical instruments.]
Yuh take dis—and yuh take dis—an’ w’en I say “Ready,” yuh all blow
to onct.
Slim
[Anxiously.]
Nuttin’ doin’!
Pete
Ready!
[The din is terrific.]
David
[Indicating the instruments with some anxiety, and pulling
Bill’s sleeve.]
Santa Claus, they haven’t been boiled!
Slim
W’at?
David
They haven’t been boiled, Mr. Slim!
Slim
[And you know he means the children—not the toys.]
Dey oughta be!
Pete
All ready? Go!
[The uproar is repeated.]
Slim
[To Bill.]
An’ I told yuh not to make a sound!
Bill
Say, kid, dere ain’t nobody else on dis floor, is dere?
David
No—nobody but us.
Bill
[Drawing a sigh of relief.]
Dat’s good. Now, fellers, we’re gonna go—
Slim
[Interrupting.]
An’ we’re gonna take him—
[He indicates David.]
along with us.
Bessie
W’at’s de hurry, Bill?
Pete
We don’t wanna go!
T’eodore
Not now!
Bessie
Bill, dere’s no place fer us to go to.
Bill
W’at do yuh mean?
Pete
De landlord, he come along w’ile we was leavin’, an’ he says we
needn’t come back—none of us—never.
Bessie
[Rather pleased with her news.]
He says he’ll put de furniture on de sidewalk, an’ yuh can git it
w’enever yuh like.
Pete
De sooner de better, he says.
Bessie
Yea—an’ dat wasn’t all he says!
Bill
[Aghast.]
He trun yuh out de moment my back was toined?
Bessie
Yuh bet he did!
Bill
He trun yuh out? He trun yuh out?
Bessie
Dat’s w’at I’m tellin’ yuh.
Bill
An’ what did paw say?
Bessie
Paw says ef yuh can’t support him in better style den dat, he’s gonna
quit yuh cold.
Bill
W’at do yuh t’ink of dat, Slim? Ain’t it de limit? Ain’t dat de absoloot
limit?
David
[Seizing Bill’s hand.]
What’s the matter, Santa Claus?
Bill
[Angrily.]
Aw, nuttin’!
David
Why don’t you tell me, Santa Claus?
Bill
[Bitterly.]
Dere’s nuttin’ de matter—on’y de kids ain’t gonna have a roof over
deir heads to-night!
David
Because you didn’t get money?
Bill
Dat’s w’y.
David
And because you didn’t pay the rent?
Bill
Yuh said it, kid.
David
But why do you want a roof over their heads? Can’t we take them
along with us?
Bill
W’at’s dat?
David
They can come to the North Pole too, can’t they? Of course it will be
a little crowded in the sleigh, but there’ll be room for all of us if we sit
close. And we’ll have lots of fun!
Slim
[Meaningly.]
Do yuh hear dat, Bill?
David
[Eagerly.]
The reindeer are waiting outside!
Slim
Aroun’ de corner.
David
Dancer and Prancer, and Blixen and Vixen—
Bill
[Interrupting.]
De reindeer’s name is Lizzie—an’ her radiator’s froze.
Slim
[Crossing to him earnestly.]
But it’s gonna get us away from here, Bill! We get outa de city—we
go somew’eres in de Bronx—an’ den we give Millman a ring on de
telephone—
David
Don’t telephone daddy; he’s always busy.
Slim
He won’t be busy dis time.
[He argues with Bill.]
David
You don’t know my daddy! My daddy is the busiest man in the world!
When he comes to see me, he says, “Exactly ten”—and that means
exactly ten. When I want to see him I have to ask his secretary—and
sometimes he can’t see me at all.
Bessie
Do yuh like dat?
David
I don’t like it—but I guess daddy has to work.
Bessie
Your daddy woik? W’at fer?
David
I guess he wants his money—so that he can pay his rent.
[Bessie snickers. David bridles indignantly.]
Don’t make fun of him! I won’t let anybody do that! I don’t think
anybody works as hard as he works! Why, he starts in the morning
before I get up, and sometimes when I wake in the middle of the
night, I tiptoe to the door of my room, and I can see the light burning
in his study downstairs! Daddy works hard—and he looks so tired!
He’s so tired sometimes that he won’t let me sit in his lap.
Bessie
My daddy lets me sit in his lap all I like!
David
[Eagerly.]
Does everybody call him a fine man?
Bessie
[A bit dubiously.]
Dey calls him all sorts of t’ings—but he don’t mind dat.
David
Do the policemen stop and speak to him?
Bessie
Not ef he sees dem foist.
David
Do they send men to his house to take his picture?
Bessie
[With pardonable pride.]
Dey don’t have ter: dey got his pitcher at headquarters.
Bill
[Who has been arguing with Slim in undertones during the
preceding dialogue, now turns abruptly.]
Come on, fellers! We’re gonna go!
[Slim takes David’s hand.]
A Chorus
Naw, Bill!... We wanna play wit’ de presents!... We don’t wanna leave
de presents!... We want de presents!
Bill
[Angrily.]
Come on, I say!
Maggie
[Appealingly.]
Baby don’t wanna leave de presents!
David
Santa Claus, let them take the presents with them!
[As Slim releases him in astonishment, he runs to the
children.]
Here: you take this, and here’s something for you; and you take one
of the railroad trains—don’t forget the tracks—and you take the other
one.
Bill
[Dumbfounded.]
Yuh’re givin’ away yer toys?
David
[Busy distributing gifts.]
They want them more than I do!
[He turns again to the children.]
Here: you can carry more than that!
[Annie’s arms are full already, but he piles toys on the
heap.]
Put these on top. Take them along.
[To Pete.]
Do they let you ride a bicycle?
Pete
Sure t’ing!
David
Then take this one.
[To Bessie.]
Do they let you go coasting on a sled?
Bessie
All I want—ef I gotta sled.
David
Here’s one for you.
[To T’eodore, holding up a pair of boxing gloves.]
Can you use them?
T’eodore
Kin a duck swim?
David
Take them.
Pete
[To Bill.]
Hey, Bill, can I have de tennis racket?
Bill
[To David.]
How about it?
David
[And you see it hurts—and besides Pete’s arms are full.]
He wants it more than I do.
Maggie
[With a cry of delight.]
Gee, look w’at I found! Ice skates! See de ice skates, baby?
David
Ice skates!
[He pauses; takes them in his hand; caresses them. This
time it hurts very much indeed.]
Bill
[Almost savagely.]
W’at are yuh gonna do, kid?
David
[Smiling at Bill.]
I’m going to give them to her.
[He places them in Maggie’s hands.]
Take good care of them—and look out for the baby—they’re sharp.
[He turns to Bill.]
And now, Santa Claus, what’s a kidnaping party?
Bill
Yuh wanna know dat?
David
Yes, Santa Claus!
Bill
Yuh really wanna know?
[David takes his hand and nods eagerly. Bill hesitates.
Then he glares defiantly at Slim, and turns to David.]
Kid, yuh ain’t never gonna loin dat from me!
Slim
[With hostility.]
W’at did yuh say?
David
[Apologetically.]
I didn’t mean to forget your present, Mr. Slim.
[He runs to the tree and fetches the candy.]
Here you are! And Merry Christmas!
[He gives Slim the box.]
Slim
De candy! Dat’s my idee of one fine present!
David
And now, Santa Claus?
Bill
[Shaking his head.]
Kid, it’s gonna cost me a lotta coin—an’ gee, w’at wouldn’t I do wit’
just a coupla dollars?—but youse a little gen’leman—see?—an’ ef
anybody lays a finger on yuh, I’ll moider him!
[He casts a defiant glance at Slim, and claps his arm upon
David’s shoulders in a rough accolade.]
Kid, youse a good sport—
[He bows grotesquely.]
—an’ I take me hat off to yuh! Yours truly, John W. Santa.
Slim
[Gasping.]
Youse gonna leave him here?
Bill
Yuh hoid me.
Slim
But we come here to—
Bill
[Interrupting.]
I changed my mind—see? A guy dat’s a he-man can do dat little t’ing
—an’ John W. Santa’s a he-man!
[He indicates David.]
I’m gonna leave him here—an’ me an’ de kids is gonna beat it—an’
youse is comin’ along, too; don’t yuh forget dat!
Slim
Bill! Yuh said yuh was hard-boiled!
Bill
[Crossing to him menacingly.]
Ef yuh don’t believe it, now’s de time to try me!
[He pauses.]
Well?
[There is a sudden loud knocking at the locked door at the
right.]
Halligan
[Outside.]
Let me in! Let me in or I’ll break down the door!
Slim
Beat it!
[There is a rush for the windows, but it stops short as the
door at the left, which has been ajar for some
moments, suddenly opens, and Millman stands on
the threshold.]
Bill
[Rising nobly to the occasion.]
A-choo!
David
God bless you!
Slim
We’re pinched!
Millman
[Quietly.]
Just that.
Slim
[Jerking his thumb toward the window.]
Cops outside?
Millman
[Nodding.]
They saw you come in. They’ve been waiting for you to come out.
Annie
[Beginning to cry.]
I want my presents!
Halligan
[Hammering at the door again.]
Let me in!
Millman
Let him in.
[Bill crosses to the door and unlocks it. Halligan and
Vicky, both wabbly, but on their feet again, come into
the room.]
Vicky
Master David! Master David! They haven’t hurt you, have they?
[She rushes to him.]
David
Santa Claus wouldn’t hurt anybody. He was going to give me a
kidnaping party, that was all.
[He pats Bill’s hand.]
Vicky
[Horrified.]
Master David!
Halligan
[Producing a whistle.]
Shall I whistle for the police, sir?
Millman
Wait, Halligan.
[He turns to the intruders.]
The house is surrounded. There is no way you can get out.
Bill
[Most unhappily.]
Yes, sir.
[He takes off his mask. For the first time we see his face:
the face of a half-starved lad with big eyes.]
Millman
Bear that in mind.
[Most unaccountably, most leisurely, he turns his back on
Bill, and draws up a chair.]
Davy, how would you like to sit in my lap?
David
I’d love it, Daddy!
Millman
So would I.
[David rushes to him. Millman settles him comfortably,
quite oblivious of the others.]
There. There. David, where were you going with this man?
David
Not “this man,” Daddy: it’s Santa Claus.
Millman
I meant Santa Claus.
David
I was just going to the North Pole.
Millman
Were you going to leave me alone?
David
I would have come back to-morrow or the next day, Daddy—if you
wanted me.
Millman
[Eloquently.]
If I wanted you!
[He pauses.]
Are you sure you would have come back, Davy?
David
Well, pretty sure.
[He hesitates.]
I wouldn’t want to bother you if you were busy.
Millman
[Wincing.]
I’m not so busy as you think, Davy.
David
No?
Millman
No.
[He pauses.]
Sometimes, when a man’s lonely—when he misses somebody who’s
gone terribly, terribly much—he tries to make himself busy. Do you
understand that, Davy?
David
I think I do. You mean—Mummy.
Millman
I mean—Mummy.
[His voice lightens.]
But now that my little boy is growing older, I don’t expect to be nearly
so busy any more.
David
[Ecstatically.]
Really, Daddy?
Millman
Honest and truly!
David
[Turning to Bill.]
Did you hear that, Santa Claus?
[Bill shuffles his feet and does not answer.]
Millman
[Sharply.]
Did you hear that, Santa Claus?
Bill
Yes, sir. I hoid him.
Millman
[Trying to speak lightly.]
And now, if you still want to go to the North Pole with Santa Claus—
you may go.
[He pauses.]
Do you want to go?
David
[Hesitates; rises; looks at his father; looks at Bill—and
then, to his father’s unutterable horror, runs to Bill.]
You won’t mind, will you, Santa Claus?
[Bill is silent.]
Millman
[In a tone like that of a whiplash.]
Answer him!
Bill
[Addressing David, and exceedingly gruff.]
W’at do yuh mean, kid?
David
You won’t mind if I stay here, will you? I don’t care so much about
that old North Pole.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookmass.com