Cov txheej txheem:

Kuv yuav siv CheckStyle hauv IntelliJ li cas?
Kuv yuav siv CheckStyle hauv IntelliJ li cas?

Video: Kuv yuav siv CheckStyle hauv IntelliJ li cas?

Video: Kuv yuav siv CheckStyle hauv IntelliJ li cas?
Video: Installing Jupyter Notebook on Ubuntu! 2024, Kaum ib hlis
Anonim

Kev teeb tsa ntawm IntelliJ

  1. Nruab tus IntelliJ Checkstyle Plugin. Nws tuaj yeem pom ntawm qhov chaw khaws cia hauv plug-in (Chaw -> Plugins -> Xauj cov chaw khaws cia)
  2. Qhib Cov Chaw (los ntawm nias Ctrl + Alt + S)
  3. Mus rau Lwm Qhov Chaw -> CheckStyle .
  4. Nyem rau ntawm ntsuab ntxiv thiab ntxiv checkstyle . xml los ntawm lub hauv paus ntawm Winery code repository.

Hais txog qhov no, koj siv lub 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.

Qhov thib ob, Kuv yuav nruab Findbugs hauv IntelliJ li cas? Ua ntej rub tawm qhov tseeb plugin (Los yog cov version uas sib xws nrog IDEA version) los ntawm plugins lub vev xaib. Ces nruab nws mus rau IDEA los ntawm qhib File -> Chaw -> Plugins thiab Nruab plugin los ntawm disk. Tom qab kev txhim kho nws, Restart IDEA. Tom qab ntawd mus rau Cov Ntaub Ntawv -> Chaw -> Lwm yam Chaw -> Checkstyle.

Ua li no, kuv yuav hloov pauv cov chaw ntshuam hauv IntelliJ li cas?

IntelliJ IDEA qhia rau ntshuam ib chav kawm los ntawm lub neej ntawd. Koj ua tau hloov tus chaw rau ntshuam tag nrho cov pob. Hauv Chaw /Preferences dialog Ctrl+Alt+S, xaiv Code Style | Java | Ntshuam . Tshem tawm Siv ib chav kawm ntshuam checkbox, thiab siv cov kev hloov pauv.

Yuav ua li cas ntxiv cov chaw XML hauv IntelliJ?

Qhov project tshwj xeeb maven nqis hauv IntelliJ

  1. Mus rau qhov chaw (Strg + Alt + s)
  2. Nkag mus rau Tsim, Ua tiav, Kev xa tawm> Tsim cov cuab yeej -> Maven (lossis nrhiav Maven)
  3. Xaiv lub checkbox override ntawm kab ntawm cov neeg siv cov ntaub ntawv teeb tsa thiab xa mus rau qhov project tshwj xeeb nqis. xml-file.

Pom zoo: