Cov txheej txheem:

Yuav ua li cas kho checkstyle yuam kev nyob rau hauv dab noj hnub?
Yuav ua li cas kho checkstyle yuam kev nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kho checkstyle yuam kev nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kho checkstyle yuam kev nyob rau hauv dab noj hnub?
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Hlis ntuj nqeg
Anonim

6 Teb

  1. Txoj nyem rau ntawm cov ntaub ntawv java hauv Package Explorer lossis xijpeem, thiab xaiv 'Apply Checkstyle Kev kho '.
  2. Nyem rau ntawm qhov yuam kev hauv teeb meem saib, thiab xaiv 'Quick kho '. Qhov no kho qhov teeb meem.

Yog li, kuv yuav kho qhov yuam kev checkstyle hauv IntelliJ li cas?

Koj tuaj yeem configure koj Checkstyle cov cai hauv lub tswv yim Code Style config (File -> Chaw -> Code Style) thiab tom qab ntawd hloov kho cov cai (Code -> Reformat Code [Ctrl + Alt + L]) raws li cov cai (koj tuaj yeem siv nws rau tag nrho cov cai hauv paus. ib zaug).

Kuv yuav download tau checkstyle plugin rau dab noj hnub li cas?

  1. Rub tawm Eclipse Checkstyle Plugin hloov tshiab site pob.
  2. Tsis pub dhau Eclipse mus rau: Pab -> Nruab Tshiab Software
  3. Nyem Ntxiv, ces Archive, xaiv cov ntaub ntawv downloaded.
  4. Xaiv qhov Eclipse Checkstyle Plugin feature rau nruab.
  5. Xaus lub installation raws li tau piav saum toj no.

Yog li ntawd, yuav ua li cas kuv thiaj li tua checkstyle nyob rau hauv dab noj hnub?

Xyuas cov Dab tuag tej yaam num hauv koj qhov chaw ua haujlwm thiab xyuas kom tseeb tias lawv tsis muaj qhov project tshwj xeeb rau Checkstyle . Right-click rau qhov project, xaiv Properties, ces Checkstyle . Xyuas kom tseeb tias cov kev xaiv xaiv yog lawm. Configuration npe yog cov ntaub ntawv rhiab heev.

Koj siv checkstyle li cas?

Koj yuav tsum qhib lub dab noj hnub Checkstyle Plugin rau koj qhov project. Right-click rau koj qhov project thiab nrhiav Checkstyle . Xaiv lub checkbox " Checkstyle active rau qhov project no". siv tus checkstyle browser saib kom pom qhov ua txhaum cai.

Pom zoo: