Home>Article>Development Tools> How to check who called a function in vscode

How to check who called a function in vscode

藏色散人
藏色散人 Original
2019-12-24 10:32:53 20631browse

How to check who called a function in vscode

How to check who calls a function in vscode?

In vscode software, if you want to check who calls a function, You can use the shortcut key [Shift F12] to find all references.

Preface

VSCode’s shortcut keys inherit some IDE styles, including VS Studio and Emacs. Figure,

In short, once you are familiar with the built-in shortcut keys, your efficiency will be improved by more than one point or two.

There are five combinations of shortcut keys (popular science)

  1. Ctrl Shift ?: This conventional combination button
  2. Ctrl C Ctrl V: A combination that relies on one key at the same time
  3. Shift V C: Combine first and then click Key input
  4. Ctrl Click: Keyboard mouse click
  5. Ctrl DragMouse: Keyboard mouse drag

# Most keys under ##macosare the same,Ctrlis replaced withCommand

##Shortcut keys

General shortcut keys

Shortcut keys ##Ctrl Shift P,F1 Display the global command panel Ctrl P Quickly open recently opened files Ctrl Shift N Open a new editor window Ctrl Shift W Close editor
Function

##Basic editing

Shortcut keys

Navigation

Function Ctrl Move lines up and down Shift Alt up/down Copy the current line up and down Ctrl Shift K Delete line Ctrl Enter Insert a new line under the current line Ctrl Shift Enter Insert a new line on the current line Ctrl Shift | Match the closing brace, jump Line indentation Cursor jumps to the beginning of the line The cursor jumps to the end of the line Ctrl Home Jumps to the top of the page Ctrl End Jump to the end of the page Ctrl up/down Offset row view up and down Alt PgUp/PgDown Screen view offset up and down Ctrl Shift [ Collapse area Code Ctrl Shift ] Expand area code Ctrl K Ctrl [ Collapse all children Region code Ctrl k Ctrl ] Expand all collapsed sub-region codes Ctrl K Ctrl 0 Collapse all area codes Ctrl K Ctrl J Expand all collapsed area codes Ctrl K Ctrl C Add line comment Ctrl K Ctrl U Delete line comment Ctrl / Add closing line comment Shift Alt A Block area comment Alt Z Add Close words containing
Ctrl ] / [
Home
End
##Ctrl T List all symbols Ctrl G Jump line Ctrl P Jump file Ctrl Shift O Jump Go to the symbol Ctrl Shift M Open the problem display panel F8 Jump to Next error or warning Shift F8 Jump to the previous error or warning Ctrl Shift Tab Switch to the most recently opened file Alt left / right Backward, forward Ctrl M Enter and use Tab to move the focus
Shortcut keys Function

##Query Replace

Shortcut keys Ctrl F Ctrl H F3 / Shift F3 Alt Enter Ctrl D Ctrl K Ctrl D Alt C / R / W
Function
Query
Replace
Query Previous/Previous
Select all occurrences of
Match the currently selected word or line, select again - operable
Move the current selection to the position of the next matching selection (cursor selected)

##Multi-line cursor operation on selection

Shortcut keys Function Alt Click Insert cursor - supports multiple Ctrl Alt up/down Insert the cursor up and down - supports multiple Ctrl U Undo the last cursor operation Shift Alt I Insert the cursor to all line terminators in the selected range Ctrl I Select the current line Ctrl Shift L Select all lines that appear in the current selection-Operation Ctrl F2 Select all words that appear in the current selection-Operation Shift Alt right Expand the selection from the cursor to the entire line Contract the selection area Mouse drag area and insert the cursor at multiple line terminators at the same time is also used to insert multiple lines of cursor [arrow key control] is also used to insert multiple lines Line cursor [valid for the entire screen]
##Shift Alt left
Shift Alt (drag mouse)
Ctrl Shift Alt (Arrow Key)
Ctrl Shift Alt PgUp/PgDown

##Rich language operations

Shortcut keys
Function Input suggestions [intelligent prompt]
##Ctrl Space
Ctrl Shift Space Parameter prompt
Tab Emmet Command trigger/indent
Shift Alt F Format code
Ctrl K Ctrl F Format Change the code of the selected part
F12 Jump to the definition
Alt F12 Code Fragment display definition
Ctrl K F12 Open definition in other window
Ctrl . Syntax errors that can be fixed in the Quick Fix section
Shift F12 Show all references
F2 Rename symbol
Ctrl Shift . / , Replace the next value
Ctrl K Ctrl X Remove whitespace characters
Ctrl K M Change page document format

Editor management

##Ctrl F4, Ctrl W Close the editor Ctrl k F Close the currently open folder Ctrl |Cut editing window Ctrl 1/2/3 Switch focus in different cutting windows Ctrl K Ctrl <-/-> Switch focus in Different cutting windows Ctrl Shift PgUp/PgDown Switch tab position Ctrl K <-/ -> Cutting window position exchange
Shortcut keys Function

#File Management

Shortcut keys Ctrl N Ctrl O Ctrl S Ctrl Shift S Ctrl K S Ctrl F4 Ctrl K Ctrl W Ctrl Shift T Ctrl K Enter Ctrl Shift Tab Ctrl Tab Ctrl K P Ctrl K R Ctrl K O
Function
New file
Open file
Save file
Save as
Save all currently open files
Close the current editing window
Close all editing windows
Undo a recently closed file editing window
Keep it open
Call up the list of recently opened files, press repeatedly to switch
Same as above, the order is inconsistent
Copy the storage path of the currently opened file
Open the currently edited file storage location [File Manager]
Open the currently edited file in a new editor

show

Shortcut keys F11 Shift Alt 1 Ctrl =/- Ctrl B Ctrl Shift E Ctrl Shift F Ctrl Shift G Ctrl Shift D Ctrl Shift X Ctrl Shift H Ctrl Shift J Ctrl Shift V Ctrl K v
Function
Switch full screen mode
Switch editing layout [currently invalid]
Zoom in/out
Sidebar display and hide
Focus switch between resource view and edit view
Open global search
Open Git visual management
Open the DeBug panel
Open the plug-in market panel
Replace query in the current file
Open detailed query
Preview Markdown file [after compilation]
Open the rendered view in the sidebar [New 】

debug

Integrated terminal

Shortcut keys F9 F5 F11 / Shift F11 F10 Ctrl K Ctrl I
Function
Add release breakpoint
Start debugging and continue
Single step into/single step out
Single step skip
Show suspension
##Ctrl ` Open the integrated terminal Ctrl Shift ` Create a new terminal Ctrl Shift C Copy selected ##Ctrl Shift V Shift PgUp / PgDown Ctrl Home / End
Shortcut keys Function
Copy to the currently activated terminal
Scroll up and down the page
Scroll to the beginning or end of the page

##SummaryAll translations are definitely not standard translations. My translations are closer to colloquialism and usage

The above is the detailed content of How to check who called a function in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How vscode tests html Next article:How vscode tests html

Related articles

See more