Cov txheej txheem:

Yuav ua li cas kom tau checkstyle nyob rau hauv dab noj hnub?
Yuav ua li cas kom tau checkstyle nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kom tau checkstyle nyob rau hauv dab noj hnub?

Video: Yuav ua li cas kom tau checkstyle nyob rau hauv dab noj hnub?
Video: ua kom poj niam los kua ntau yuav ua cas 2024, Kaum ib hlis
Anonim
  1. Download a Dab noj hnub Checkstyle Plugin hloov tshiab site pob.
  2. Hauv Dab tuag mus rau: Pab -> Nruab Tshiab Software
  3. Nyem Ntxiv, ces Archive, xaiv cov ntaub ntawv downloaded.
  4. Xaiv tus Dab noj hnub Checkstyle Plugin feature rau nruab.
  5. Xaus lub installation raws li tau piav saum toj no.

Hauv qhov no, kuv yuav teeb tsa checkstyle li cas?

Nov yog nws ua haujlwm li cas:

  1. Qhib qhov Eclipse Preferences Qhov rai.
  2. Nkag mus rau seem Checkstyle hauv qhov nyiam dab noj hnub.
  3. Nyem qhov Tshiab
  4. Xaiv lub configuration koj tsim thiab nias Configure
  5. Rov qab mus rau qhov project Properties thiab xaiv koj configuration los siv los xyuas koj qhov project.

Ib yam li ntawd, kuv yuav ua li cas kaw checkstyle 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.

Tsis tas li ntawd, kuv yuav kho cov lus ceeb toom checkstyle hauv dab noj hnub li cas?

6 Teb

  1. Txoj nyem rau ntawm java cov ntaub ntawv hauv pob Explorer lossis txawm li cas los xij, thiab xaiv 'Apply Checkstyle Corrections'.
  2. Nyem rau ntawm qhov yuam kev hauv cov teeb meem saib, thiab xaiv 'Quick fix'. Qhov no kho qhov teeb meem.

Kuv yuav siv Google checkstyle li cas hauv dab noj hnub?

Koj yuav tsum qhib lub Dab noj hnub Checkstyle Plugin rau koj qhov project. Right-click ntawm 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: