xwysyy

xwysyy

Sublime Text

Cracking#

  • Find the software installation location and locate sublime_text.exe
  • Drag sublime_text.exe into another text editor
  • Search for 807805000f94c1 and replace it with c64005014885c9, then save.

Shortcuts#

Selection#

  • Ctrl+D selects the text occupied by the cursor; continuing the operation will select the next identical text.
  • Alt+F3 selects the text and pressing the shortcut will select all identical text for simultaneous editing. For example: quickly select and change all identical variable names, function names, etc.
  • Ctrl+L selects the entire line; continuing the operation will select the next line, the effect is the same as Shift+↓.
  • Ctrl+Shift+L first selects multiple lines, then pressing the shortcut will insert the cursor at the end of each line, allowing simultaneous editing of these lines.
  • Ctrl+Shift+M selects the content within parentheses (continue selecting the parenthesis). For example: quickly select and delete code within a function, rewrite the function body code or rewrite the content inside the parentheses.
  • Ctrl+M moves the cursor to the end or start position within the parentheses.
  • Ctrl+Enter inserts a new line below. For example: even if the cursor is not at the end of the line, you can quickly insert a line downward.
  • Ctrl+Shift+Enter inserts a new line above. For example: even if the cursor is not at the beginning of the line, you can quickly insert a line upward.
  • Ctrl+Shift+[ selects the code, pressing the shortcut will fold the code.
  • Ctrl+Shift+] selects the code, pressing the shortcut will unfold the code.
  • Ctrl+K+0 unfolds all folded code.
  • Ctrl+← moves the cursor left by one unit, quickly moving the cursor.
  • Ctrl+→ moves the cursor right by one unit, quickly moving the cursor.
  • Shift+↑ selects multiple lines upward.
  • Shift+↓ selects multiple lines downward.
  • Shift+← selects text to the left.
  • Shift+→ selects text to the right.
  • Ctrl+Shift+← selects text to the left by one unit.
  • Ctrl+Shift+→ selects text to the right by one unit.
  • Ctrl+Shift+↑ swaps the current line with the previous line (inserts the current line before the previous line).
  • Ctrl+Shift+↓ swaps the current line with the next line (inserts the current line after the next line).
  • Ctrl+Alt+↑ adds multiple cursors upward, allowing simultaneous editing of multiple lines.
  • Ctrl+Alt+↓ adds multiple cursors downward, allowing simultaneous editing of multiple lines.

Editing#

  • Ctrl+J merges selected multiple lines of code into one line. For example: merging multiple lines of formatted CSS properties into one line.
  • Ctrl+Shift+D copies the entire line where the cursor is located and inserts it into the next line.
  • Tab indents to the right.
  • Shift+Tab indents to the left.
  • Ctrl+K+K starts deleting code from the cursor to the end of the line.
  • Ctrl+Shift+K deletes the entire line.
  • Ctrl+/ comments a single line.
  • Ctrl+Shift+/ comments multiple lines.
  • Ctrl+K+U converts to uppercase.
  • Ctrl+K+L converts to lowercase.
  • Ctrl+Z undoes the last action.
  • Ctrl+Y redoes the undone action.
  • Ctrl+U soft undo, feels like Ctrl+Z.
  • Ctrl+F2 sets a bookmark.
  • Ctrl+T swaps letters left and right.
  • F6 checks spelling of words.

Searching#

  • Ctrl+F opens the bottom search box to find keywords.
  • Ctrl+Shift+F searches within a folder; unlike ordinary editors, Sublime allows adding multiple folders for searching, which is slightly advanced and not fully explored.
  • Ctrl+P opens the search box. For example: 1. Enter the filename in the current project to quickly search for the file, 2. Enter @ and keywords to find function names in the file, 3. Enter : and a number to jump to that line of code in the file, 4. Enter # and keywords to find variable names.
  • Ctrl+G opens the search box, automatically adds :, and entering a number jumps to that line of code. For example: quickly locate in a long file of page code.
  • Ctrl+R opens the search box, automatically adds @, and entering keywords finds function names in the file. For example: quickly find a specific function on a page with many functions.
  • Ctrl+: opens the search box, automatically adds #, and entering keywords finds variable names, property names, etc. in the file.
  • Ctrl+Shift+P opens the command box. Scenario example: open the naming box, enter keywords, and call Sublime Text or plugin functions, such as using package to install plugins.
  • Esc exits multi-line cursor selection, exits the search box, command box, etc.

Display#

  • Ctrl+Tab switches the current window's tabs in the order of files browsed.
  • Ctrl+PageDown switches the current window's tabs to the left.
  • Ctrl+PageUp switches the current window's tabs to the right.
  • Alt+Shift+1 splits the window, restoring to default 1 screen (not the numeric keypad).
  • Alt+Shift+2 splits the window into 2 columns.
  • Alt+Shift+3 splits the window into 3 columns.
  • Alt+Shift+4 splits the window into 4 columns.
  • Alt+Shift+5 divides into 4 equal screens.
  • Alt+Shift+8 splits the window vertically into 2 screens.
  • Alt+Shift+9 splits the window vertically into 3 screens.
  • Ctrl+K+B toggles the sidebar on/off.
  • F11 enters full-screen mode.
  • Shift+F11 enters distraction-free mode.

Comparison#

Source: Liusu Lss

First, if you want to compare the file d.cpp, you need to create two files: d__Good.cpp and d__Generator.cpp, where the former is the correct code and the latter is the data generation code. Note that both files have two underscores.

Then, in the file you want to compare, press ctrl+shift+p to find FastOlympicCoding:Make Stress, and then press Enter.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.