Yuav ua li cas koj hais ntau kab hauv dib feature?
Yuav ua li cas koj hais ntau kab hauv dib feature?

Video: Yuav ua li cas koj hais ntau kab hauv dib feature?

Video: Yuav ua li cas koj hais ntau kab hauv dib feature?
Video: Qhia txog tus neeg pw tsis tsaug zog yuav ua li cas 2024, Kaum ib hlis
Anonim

Rau comment ntau kab los yog siv thaiv kev tawm tswv yim xaiv tag nrho cov kab thiab nias Ctrl + / hauv dab noj hnub. Lwm yam IDE tej zaum yuav muaj lwm yam shortcuts los ua qhov no. Ib yam li tshem tawm tawm tswv yim nias Ctrl + / dua.

Yog li ntawd, yuav ua li cas koj tawm tswv yim nyob rau hauv dib feature ntaub ntawv?

Cov lus pom hauv Feature File Hauv dab noj hnub, mus tawm tswv yim ib kab ntau lossis siv thaiv tawm tswv yim ua ntej xaiv tag nrho cov kab kom tau tawm tswv yim thiab tom qab ntawd nias Ctrl + /. Ib yam li ntawd, tshem tawm lus , peb yuav tsum nias Ctrl +. Lwm cov IDEs yuav muaj lwm cov shortcuts los ua qhov no.

Tom qab ntawd, lo lus nug yog, Kuv yuav hais li cas ntau kab hauv cov ntaub ntawv feature hauv Intellij? Txhawm rau ntxiv lossis tshem tawm cov lus qhia thaiv, ua ib qho hauv qab no:

  1. Ntawm cov ntawv qhia zaub mov tseem ceeb, xaiv Code | Saib nrog Block Comment.
  2. Nias Ctrl+Shift+/.

Ib yam li ntawd, nws raug nug, cov cim dab tsi yog siv los piav qhia ntau kab lus?

Qhov pib ntawm a thaiv kev tawm tswv yim los yog a ntau - kab lus yog cim los ntawm cim /* thiab cim */ cim nws qhov kawg. Hom no tawm tswv yim yog hu ua qhov no tuaj yeem txuas ntxiv ntau dua ib qho kab ; thaum lub compiler nyeem /* nws ignores dab tsi raws li mus txog rau thaum nws ntsib ib tug */.

Koj hais li cas hauv cov ntaub ntawv feature?

Koj tuaj yeem ua tiav nws los ntawm kev xaiv tag nrho cov kab uas koj xav tau tawm tswv yim thiab tom qab ntawd nias "Ctrl + ntxiv / sib npaug qhov tseem ceeb + /" yuam sij hauv dab noj hnub. Ntawm Mac- Xaiv tag nrho cov kab koj xav tau tawm tswv yim thiab nias cmd+shift+c.

Pom zoo: