1.選擇Settings-->Editor-->Live Templatesip
二、點擊+號,選擇Live Templateit
三、在Abbreviation中寫入簡寫的代碼,Description代碼描述,Template text寫入要代替完整的代碼。io
四、Define選擇做用範圍di