SublimeText3 installation, configuration items, package management, common necessary plug-ins, common shortcut keys and modifications

SublimeText3


Install

bookmark

Equality code for all beings

Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
B085E65E 2F5F5360 8489D422 FB8FC1AA
93F6323C FD7F7544 3F39C318 D95E6480
FCCC7561 8A4A1741 68FA4223 ADCEDE07
200C25BE DBBC4855 C4CFB774 C5EC138C
0FEC1CEF D9DCECEC D3A5DAD1 01316C36

package management

PackageControl component

  1. Press Ctrl+to bring up the console

  2. Paste the following code into the command line at the bottom and press Enter:

    import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())
    
  3. Restart the software, if you see the package control item in Perferences->package settings, the installation is successful.

  4. Next, you can use Package Control to install the plug-in: press Ctrl+Shift+Pto call the control panel, enter install to call up the Install Package option, and press Enter. Then enter the plug-in to be installed in the search box, select it from the list and install it.

Commonly used plug-ins

  • ConvertToUTF8 supports GBK, BIG5, EUC-KR, EUC-JP, Shift_JIS and other encoding plug-ins
  • SublimeCodeIntel
  • Alignment
  • SublimeLinter
  • SideBarEnhancements This plugin improves the sidebar and adds many features
  • SublimeREPL

Commonly used shortcut keys and modifications


  1. Ctrl+shift+pOpen the command palette
  2. escexit a state
  3. Ctrl+pOpen the file according to the file name, you can fuzzy match
  4. Ctrl+rFind and set the function name under the current file
  5. Ctrl+gEnter a number in the input box and locate the line number
  6. Ctrl+pAdd the # mark to the input box to find the mark
  7. Ctrl+dSimultaneous editing in multiple places
    • To modify multiple identical codes, select one of them first, and then Ctrl+dselect the same code downwards and then edit them together.
    • Move the mouse to a certain place, press and hold the shift key, and at the same time press the right mouse button and pull down to select several letters in multiple lines continuously
  8. Ctrl+fEnter the code to be searched, press enter to find the next one, and shift+enter to find the previous one.
  9. Ctrl+hfind replace
  10. Ctrl+shift+fSearch all projects, search in all files under the current folder
  11. Ctrl+wclose current file
  12. Ctrl+shift+wclose all files
  13. Ctrl+k+bopen/hide side
  14. Ctrl+xdelete current line
  15. Ctrl+shift+enter/Ctrl+enterInsert a blank line before/after the current line
  16. Ctrl+mJump to corresponding matching parentheses
  17. Ctrl+nnew window
  18. Ctrl+/、Ctrl+shift+/Last line comments and block comments
  19. Ctrl+alt+up/Ctrl+alt+downSwap two lines up or down, the shortcut key may be occupied by the Intel core graphics card of the PC system. Solution
  20. Right-click function -> show unsaved changesdisplay unsaved changes, the red minus sign indicates the deleted content, and the green plus sign indicates the newly added content.
    • Open Containing Folder…Open the folder containing this file, which is handy for finding related files.
    • Copy File PathCopy the file path, so that we can copy the path to view in the browser.
  21. F11/Shift+F11Full screen/full screen do not disturb mode, only edit the current file
  22. Alt+Shift+Number
    • Alt+Shift+1Window split screen, restore the default 1 screen (numbers other than the keypad)
    • Alt+Shift+2Split screen left and right - 2 columns
    • Alt+Shift+3Left and right split screen - 3 columns
    • Alt+Shift+4Left and right split screen - 4 columns
    • Alt+Shift+54 equal screens
    • Alt+Shift+8Vertical split screen - 2 screens
    • Alt+Shift+9Vertical split screen - 3 screens
  23. Batch select operation
    • shift+↑Select multiple rows up.
    • shift+↓Select multiple rows down.
    • Shift+←Select text to the left.
    • Shift+→Select text to the right.
  24. indentation operation
    • TabIndent right.
    • Shift+TabIndent left.
  25. Rollback operation
    • Ctrl+Zundo.
    • Ctrl+YRevert Undo.
    • Ctrl+Usoft undo,
  26. Ctrl+TThe left and right letters are swapped.
  27. Ctrl+TabSwitch the tabs of the current window according to the order in which the files have been browsed.

configuration item


Generally, it is modified in the user to prevent the upgrade default from being overwritten

  • system settings

    {
        "color_scheme"        : "Packages/Color Scheme - Default/Monokai.tmTheme",    // theme
        "draw_minimap_border" : true,                                                 // 右侧缩略图边框
        "font_face"           : "YaHei Consolas Hybrid",                              // 字体设置
        "font_size"           : 13,                                                   // 字体大小
        "highlight_line"      : true,                                                 // 当前行标亮
        "ignored_packages"    : ["Toggle Css Format"],                                // 开启vim模式
        "save_on_focus_lost"  : true,                                                 // 失去焦点后保存
        "auto_complete"       : false,                                                // 失去焦点后保存
        "word_wrap"           : false,                                                // 强制不换行
        "word_separators"     : "./\\()\"':,.;<>~!@#$%^&*|+=[]{}`~?",                 // 双击选中中划线
        "update_check"        : false                                                 // 关闭自动更新
    }
    
  • shortcut key settings

おすすめ

転載: blog.csdn.net/qq_33704787/article/details/126089491