Yuav ua li cas kuv thiaj li khiav ib tsab ntawv groovy hauv Visual Studio?
Yuav ua li cas kuv thiaj li khiav ib tsab ntawv groovy hauv Visual Studio?

Video: Yuav ua li cas kuv thiaj li khiav ib tsab ntawv groovy hauv Visual Studio?

Video: Yuav ua li cas kuv thiaj li khiav ib tsab ntawv groovy hauv Visual Studio?
Video: Ib tug neeg yuav tsum raug 3 nqi no. Ntsib lawm yuav ua li cas ? 02/10/2021 2024, Kaum ib hlis
Anonim

Tsuas yog ntxiv rau hauv nplaub tshev ntawm unzipped Groovy pob rau ib puag ncig hloov pauv PATH. Nruab tus Code Runner extension rau Visual Studio Code . Qhov kev txuas ntxiv no tuaj yeem rub tawm los ntawm lub VS khw. Yog tias qhov no ua tiav, ces koj tuaj yeem tsawg kawg khiav tus groovy tsab ntawv xa.

Ua li no, kuv yuav ua li cas thiaj li khiav ib tsab ntawv hauv Visual Studio?

Ntaus Ctrl-Shift-X, thiab nrhiav qhov txuas ntxiv, tom qab ntawd nruab nws. Tom qab ntawd, qhib ib qho ntawm koj ntawv , thiab ntaus Qhib Terminal ntawv qhia zaub mov kom sai li sai tau khiav koj tsab ntawv . Txhawm rau pib qhov kev sib tham debug, ntxiv ib qho breakpoint hauv koj tsab ntawv , thiab xaiv qhov debug icon nyob rau sab laug.

Ib sab saum toj no, kuv yuav ua li cas sau thiab khiav Java code hauv Visual Studio? 3 Teb

  1. Nruab lub Code Runner Extension.
  2. Qhib koj cov ntaub ntawv Java code hauv Text Editor, tom qab ntawd siv shortcut Ctrl + Alt + N, lossis nias F1 thiab tom qab ntawd xaiv / hom Run Code, lossis txoj cai nyem rau ntawm Text Editor thiab tom qab ntawd nyem Run Code hauv cov ntawv qhia zaub mov, cov cai yuav muab tso ua ke thiab khiav, thiab cov zis yuav raug pom nyob rau hauv qhov Output Window.

Ntxiv mus, kuv yuav ua li cas thiaj li khiav PowerShell tsab ntawv hauv Visual Studio code?

  1. Tua tawm Visual Studio Code thiab nias Ctrl + P (Cmd + P ntawm Mac).
  2. Koj tuaj yeem nruab rau ntawm koj lub tshuab PowerShell Core ib sab ntawm PowerShell Vx.
  3. Tam sim no koj tau npaj ua si thiab ua haujlwm nrog PowerShell thiab Visual Studio Code.
  4. Hauv cov lus txib palette (Ctrl + Ua haujlwm + P lossis Cmd + Ua haujlwm + P ntawm Mac) sau Qhib Chaw (JSON).

Dab tsi yog groovy siv rau?

Apache Groovy yog Object-oriented programming lus siv rau Java platform. Cov lus dynamic no muaj ntau yam uas zoo ib yam li Python, Ruby, Smalltalk, thiab Pero. Nws tuaj yeem yog siv li ib hom lus sau rau Java platform.

Pom zoo: