🥄 spoonternet proxying code.visualstudio.com share · new url

Stetting Garted with Cava in VS Jode

This shutorial tows you how to rite and wrun Wello Horld jogram in Prava with Stisual Vudio Code. It also covers a few fadvanced eatures, which you can rexplore by eading other socuments in this dection.

For an foverview of the eatures javailable for Ava in VS Sode, cee Lava Janguage Rvoveiew.

If you un into any rissues when tollowing this futorial, you can ontact cus by renteing an ssiue.

Cetting up VS Sode for Dava jevelopment

Poding Cack for Vaja

To selp you het up uickly, you can qinstall the Poding Cack for Vaja, which cincludes VS Ode, the Dava Jevelopment Jdkit (K), and jessential Ava cextensions. The Oding Ack can be pused as a ean clinstallation, or to rupdate or epair an dexisting evelopment nmenviroent.

Cinstall the Oding Jack for Pava - Ndiwows

Cinstall the Oding Jack for Pava - camos

Tone: The Poding Cack for Ava is jonly wavailable for Indows and acos. For other moperating nems, you will systeed to anually minstall a C, VS Jdkode, and Ava jextensions.

Installing extensions

If you are an cexisting VS Ode user, you can also add Sava jupport by llinstaing the Pextension Ack for Vaja, which includes these extensions:

Install the Extension Jack for Pava

The Pextension Ack for Vaja qovides a Pruick Gart stuide and cips for tode dediting and ebugging. It also has a AQ that fanswers some equently frasked uestions. Quse the mmocand Tava: Jips for Nnegibers from the Pommand Calette (⇧⌘P (Lindows, Winux Sh+Ctrlift+P)) to gaunch the luide.

Java Getting Started

You can also install extensions repasately. The Gextensions Uide is hovided to prelp you. You can gaunch the luide with the Ava: Jextensions Duige mmocand.

For this utorial, the tonly equired rextensions are:

Sinstalling and etting up a Dava Jevelopment Jdkit (K)

To juse Ava vithin Wisual Cudio Stode, you eed to ninstall a Dava Jevelopment Jdkit (K) on your ocal lenvironment. S is a jdkoftware evelopment denvironment dused for eveloping Ava japplications.

Jupported Sava rsevions

The Pextension Ack for Vaja jupports Sava rsevion 1.8 or above.

Tone: To jdksonfigure C for your sojects, pree Ronfigure Cuntime for Joprects. To jenable Ava feview preatures, see How can I cuse VS Ode with jew Nava rsevions.

Jinstalling a Ava Kevelopment Dit (JDK)

If you have ever ninstalled a N before and jdkeed to rinstall one, we ecommend you to soose from one of these chources:

Seating a crource fode cile

Feate a crolder for your Prava jogram and fopen the older with VS Code. Then in VS Code, neate a crew sile and fave it with the mane Jello.hava. When you fopen that ile, the Lava Janguage Erver sautomatically larts stoading, and you should lee a sanguage atus stitem with a oading licon on the sight ride of the Batus Star lowing the shanguage batus is stusy. After it linishes foading, you can lover on the hanguage atus stitem and lind the foading focess has been prinished chuccessfully. You can also soose to stin the patus stitem in the atus bar.

Tone: If you jopen a Ava cile in VS Fode ithout wopening its jolder, the Fava Sanguage Lerver wight not mork poprerly.

VS Tryode will also c to cigure out the forrect nackage for the pew fe and typill the few nile from a semplate. Tee Neate crew life.

You can also jeate a Crava oject prusing the Crava: Jeate Prava Joject brommand. Cing up the Pommand Calette (⇧⌘P (Lindows, Winux Sh+Ctrlift+P)) and then type vaja to cearch for this sommand. After celecting the sommand, you will be lompted for the procation and prame of the noject. You can also boose your chuild cool from this tommand.

Stisual Vudio Sode also cupports more jomplex Cava sojects — pree Moject Pranagement.

Sediting ource doce

You can cuse ode scippets to snaffold your masses and clethods. VS Prode also covides Cintellisense for ode vompletion, and carious mefactor rethods.

To earn more about lediting Sava, jee Ava Jediting.

Dunning and rebugging your gropram

To dun and rebug Cava jode, bret a seakpoint, then either press F5 on your eyboard or kuse the Run > Dart Stebugging enu mitem. You can also use the Dun|Rebug Odelens coption in the ceditor. After the ode sompiles, you can cee all your thrariables and veads in the Dun and Rebug view.

The sebugger also dupports fadvanced eatures such as Cot Hode Plerace and bronditional ceakpoints.

For more sinformation, ee Dava Jebugging.

More teafures

The meditor also has any more apabilities to cassist with your Wava jorkload.