Shortcut keys used: Formatting and typesetting Code -> Rearrange Code or Ctrl Alt l (lowercase L), display line: Settings -> Editor -> General -> Appearance -> Check Show line numbers.
Show line numbers: Settings->Editor->Appearance label item, check Show line numbers
The cursor is not positioned randomly: Settings-> ;Remove Allow placement of caret after end of line in Editor.
Related recommendations: "PhpStorm Usage Tutorial"
Shortcut key problem: You can use the shortcut keys of other software, Settings-> ;Keymap, encoding settings: Chinese garbled characters in the editor. This is an error in the project character encoding settings.
##FILE ->Settings->Editor->Code style->File encoding There are 3 settings to set according to your own needs, IDE Encondings: IDE encoding, select IDE Encoding is GBK. You have to adjust it yourself. Project Encoding: Project encoding, Default encoding for properties files: Default file encoding. Fonts and sizes in the editor, FILE -> Settings> Editor->Colors & Fonts -> Font -> on the right. Size: font size, Line spacing: line spacing, the font is in the lower box, on the left -> you can select the font, Right side ->The actual application font.The above is the detailed content of How to use jetbrains phpstorm. For more information, please follow other related articles on the PHP Chinese website!