1舵匾、先選中變量,再Ctrl+D N次同時(shí)選中多個(gè)同名變量氯迂,同步修改
Use?Multiple Selections?to rename variables quickly
使用多個(gè)選項(xiàng)快速重命名變量
Here?Ctrl+D?is used to select the next occurrence of the current word. Once created, each selection allows for full-featured editing.
這里Ctrl+D用于選擇當(dāng)前單詞的下一個(gè)出現(xiàn)項(xiàng)裸燎。一旦創(chuàng)建,每個(gè)選擇都允許進(jìn)行全功能編輯宿接。
2、Ctrl+P呼出查找框辕录,首字母組合快速定位文件睦霎,@轉(zhuǎn)換為字符模式方便查找內(nèi)容
Quickly jump to files and functions with?Goto Anything
快速跳轉(zhuǎn)到文件和函數(shù)與Goto任何東西
Here?Ctrl+P?is used to open the?Goto Anything?menu,?xcc?is used to select the file?xla_compilation_cache.cc,?@?switches to symbol mode, and?:c?selects the?XlaCompilationCache::Compile?method.
這里使用Ctrl+P打開Goto Anything菜單,使用xcc選擇文件xla_compilation_cache.cc, @切換到符號(hào)模式走诞,:c選擇XlaCompilationCache::Compile方法副女。
3、跳轉(zhuǎn)到函數(shù)的定義蚣旱,鼠標(biāo)懸停跳轉(zhuǎn)定義碑幅,或者光標(biāo)定位后F12,或者Ctrl+Shift+R
Navigate source using?Goto Definition
使用Goto定義導(dǎo)航源代碼
Here the mouse is hovered over a symbol to jump to the definition. The keyboard shortcut?F12?can be used when the caret is located on a symbol, or?Goto Symbol in Project?can be opened via?Ctrl+Shift+R?to jump to the definition of any symbol in the project.
這里塞绿,鼠標(biāo)懸停在一個(gè)符號(hào)上以跳轉(zhuǎn)到定義沟涨。當(dāng)插入符號(hào)位于符號(hào)上時(shí),可以使用鍵盤快捷鍵F12异吻,或者可以通過(guò)Ctrl+Shift+R打開項(xiàng)目中的Goto符號(hào)裹赴,跳轉(zhuǎn)到項(xiàng)目中任何符號(hào)的定義。
4诀浪、Ctrl+R呼出檢索框棋返,@后輸入函數(shù)名,在大型源碼文件中能快速定位到函數(shù)位置
Unsurpassed performance
無(wú)與倫比的性能
Here a 7MB source code file is opened, and?Goto Symbol?Ctrl+R?is used to jump to a function 200k lines down. Full editing features are retained for code in large files, or with complex syntax.
這里打開一個(gè)7MB的源代碼文件雷猪,并使用Goto符號(hào)Ctrl+R向下跳轉(zhuǎn)到一個(gè)函數(shù)200k行睛竣。對(duì)于大型文件或具有復(fù)雜語(yǔ)法的代碼,將保留完整的編輯特性求摇。