IDEA 自帶變量參數(shù)介紹

2021-07-05 14:47 更新

在文章開(kāi)頭我們已經(jīng)有提到 IntelliJ IDEA 實(shí)時(shí)代碼模板是有變量參數(shù)設(shè)置的,其中 IntelliJ IDEA 自帶了兩個(gè)變量參數(shù):

  • ?$END$?,表示最后都編輯完后光標(biāo)所處的位置
  • ?$SELECTION$?,表示設(shè)置環(huán)繞實(shí)時(shí)代碼模板,環(huán)繞功能下面會(huì)模板專門進(jìn)行介紹。
  • 除了上面兩個(gè)變量參數(shù)外,其他一律都會(huì)自定義變量。
  • 官網(wǎng)介紹:https://www.jetbrains.com/idea/help/live-template-variables.html
  • ?$END$? indicates the position of the cursor after the template is expanded.
  • ?$SELECTION$? is used in surround templates and stands for the code fragment to be wrapped.

  • 以上內(nèi)容是否對(duì)您有幫助:
    在線筆記
    App下載
    App下載

    掃描二維碼

    下載編程獅App

    公眾號(hào)
    微信公眾號(hào)

    編程獅公眾號(hào)