Complete The Exercises To Practice Sublime Text YouTube Channel Sources: LevelUpTuts, tutoriaLinux, Learn Coding Tutorials, Corey Schafer, Tech With Tim #Sublime Text Introduction (Tutorial #1) 1. Hold Ctrl single mouse click before the letter c for all the words cat to create multiple cursors. Also, press Ctrl+D,D multiple times to select cat multiple times. Bonus press Alt+F3 to select all words cat. Bonus press Ctrl+F3 to find and select the next cat word. I once had a cat. The cat was fast. He was much faster than the average cat. 2a. Create multiple cursor lines at the beginning of the days by pressing Shift+Right Mouse Click drag down the beginning of the days. Create multiple cursor lines at the end of the days by pressing Shift+Right Mouse Click drag down the end of the days. Another way to create multiple cursor lines at the end of the days is press Shift+Right Mouse Click drag down at the beginning of the days, then press End. A third way to create multiple cursor lines is highlight all days, then press Ctrl+Shift+L, Right Cursor or End. A fourth way to create multiple cursor lines is highlight all days, then press Ctrl+Shift+L, Left Cursor or Home. A fifth way to create multiple cursor lines is hold Alt+Ctrl, press Up Cursor or Down Cursor the number of lines, and press End. Create multiple cursors in Linux is Alt+Shift instead of Alt+Ctrl. Monday Tuesday Wednesday Thursday Friday Saturday Sunday 2b. Windows press Alt+Shift, left mouse click hold, and drag cursor to create a square selection with multiple cursors. Practice below. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 3a. Highlight a sentence. Press Ctrl+L to select sentence with paragraph break. Press Ctrl+L, Ctrl+Shift+L to select sentence without paragraph break and have cursor at the end of the sentences. Press Ctrl+L, then hold Ctrl and press L multiple times to select multiple sentences. Finally, holding Ctrl, press Shift+L last to ignore the last paragraph break and have multiple cursors at the end of the sentences. For HTML, press Alt+Shift+W to wrap selection(s) with an HTML tag. Also, highlight sentences with the mouse. Then press Ctrl+Shift+L to have multiple cursors at the end of the sentences. Press Home for cursors at the beginning of the sentences. Today is a day. Blue is the phone. We lovel the breathe air. Candy dandy. Bite the tree. 3b. Triple mouse click a paragraph or a line selects the entire paragraph or line. 3c. Pretend the sentences are in an HTML file. Highlight these three sentences or press Ctrl+L then Ctrl+Left Arrow. Press Alt+Shift+W to wrap the three sentences in an HTML tag. We lovel the breathe air. Candy dandy. Bite the tree. Solution:

We lovel the breathe air. Candy dandy. Bite the tree.

3d. Pretend the sentences are in an HTML file. Highlight these three sentences or press Ctrl+L then Ctrl+Shift+L. Press Alt+Shift+W to wrap the three sentences in their own HTML tag. We lovel the breathe air. Candy dandy. Bite the tree. Solution:

We lovel the breathe air.

Candy dandy.

Bite the tree.

#Sublime Text Line and Indentation Tools (Tutorial #2) 1. Reorder the days of the week from Mon to Sun pressing Ctrl+Shift+Up Arrow or Ctrl+Shift+Down Arrow. Monday Saturday Wednesday Tuesday Sunday Friday Thursday 2. Duplicate the line below pressing Ctrl+Shift+D. The duplication works when multiple lines are highlighted. Perfect practice makes perfect. 3. Delete the least like color pressing Ctrl+Shift+K. Press Ctrl+X is the shortcut for cut. Blue Green Red 4. Correct the indent for the following paragraph pressing Ctrl+] or Ctrl+Right Bracket to indent anywhere in each sentence. Press Ctrl+[ or Ctrl+Left Bracket to unindent anywhere in each sentence. Here is a paragraph about good writing. Use proper English for the reader to understand. A third paragraph is here. The last sentence in the paragraph to highlight. I lied. Here is the last paragraph to highlight. Smart indentation may not work in text files. 5. Shrink the following paragraph. Highlight the entire paragraph. Press Ctrl+Shift+[. Press Ctrl++Shift+] to unshrink. Here is a paragraph about good writing. Use proper English for the reader to understand. A third paragraph is here. The last sentence in the paragraph to highlight. I lied. Here is the last paragraph to highlight. 6. Reindent smart Edit-->Line-->Reindent or Alt,E,L,R. Highlight the entire paragraph, Edit-->Line-->Reindent or Alt,E,L,R to reindent. Here is a paragraph about good writing. Use proper English for the reader to understand. A third paragraph is here. The last sentence in the paragraph to highlight. I lied. Here is the last paragraph to highlight. Solution: Here is a paragraph about good writing. Use proper English for the reader to understand. A third paragraph is here. The last sentence in the paragraph to highlight. I lied. Here is the last paragraph to highlight. 7. Press Ctrl+Shift+V for smart paste and smart indentation. Copy the five sentences below. Then paste press Ctrl+Shift+V the five sentences below below. Here is a paragraph about good writing. Use proper English for the reader to understand. A third paragraph is here. The last sentence in the paragraph to highlight. I lied. Here is the last paragraph to highlight. Smart indentation may not work in text files. 8. Press Ctrl+Enter to insert a line with cursor at new line. Or move text below one line while cursor move below. Cursor can be anywhere to insert an empty line. Yes is a good word sometimes. Insert line below. No is a bad word sometimes. 9. Press Ctrl+Shift+Enter to insert a line above with cursor at new line. Or move text below one line while cursor doesn't move below. Cursor can be anywhere to insert an empty line. Yes is a good word sometimes. Insert line above. No is a bad word sometimes. 10. Press Ctrl+Shift+J to join the two sentences below into one. Place cursor at the end of the first sentence. Press Ctrl+Shift+J multiple times to join multiple sentences into one. Highlight entire paragraph, press Ctrl+Shift+J once to join paragraph into once line. A fire extinguisher is a must anywhere indoors. I look beautiful wearing a green shirt. Follow the bouncing ball. Solution A fire extinguisher is a must anywhere indoors. I look beautiful wearing a green shirt. Follow the bouncing ball. Original A fire extinguisher is a must anywhere indoors. I look beautiful wearing a green shirt. Follow the bouncing ball. #Sublime Text Goto Anything (Tutorial #3) 1. Drag a folder to Sublime Text. Sublime Text creates a project. 2. Drag a file to Sublime Text. Sublime Text opens a file. 3. Right mouse click select Show Unsaved Changes to see recent edits. 4. Open the sidebar press Ctrl+K, Ctrl+B. 5. Save a project consisting of the files and folders used. Project-->Save Project As.... Open-->Open Project to open project with its files and folders used. #Sublime Text Command Palette (Tutorial #4) 1. Practice using Command Palette to speed up editing or programming. Highlight the sentence below. Press Ctrl+Shift+P. Type case or convert. Convert the sentence any choice. A personal tip is think of Shift in Ctrl+Shift+P as using a command from the menu bar. The quick brown fox jumped over the lazy dog. Original The quick brown fox jumped over the lazy dog. 2. Examples of Command Palette are convert case, sort, reverse sort, HTML encode, reindent, and set syntax such as HTML. #Sublime Text Package Manager (Tutorial #5) 1. Google search Sublime Text Package Manager named Package Control. Link is https://packagecontrol.io/. Click Installation upper right. Follow instructions. These are the procedures to install Package Manager. 2. Press Ctrl+Shift+P, then type install package, select Package Control: Install Package. 3. Browse and install packages. 4. Preferences-->Package ControL-->type remove-->Package Control; Remove Package-->select package using cursor Remove packages or uninstall packages. #Sublime Text Snippets (Tutorial #6) 1a. Explain by an example. Open a blank .html file. Type html, press tab, standard tags appeared. 1b. You may have to use the snippets from the menu bar Tools-->Snippets-->Snippet: HTML or Ctrl+Shift+P, type snippet, select Snippet: HTML. 1c. If you have Emmet installed from Sublime Text Emmet (Tutorial #7), then use the Emmet HTML template by typing ! and pressing tab to begin an HTML file with the Emmet HTML template. 2. View the snippets available in file and the file syntax. Tools-->Snippets.... #Sublime Text Emmet (Tutorial #7) 1. Install a package; e.g. Emmet. Press Ctrl+Shift+P. Type install or Package Control: Install Package. 2. Type Emmet. 3. Press Enter. Emmet is installing. 4. You may close Sublime Text and reopen Sublime Text after installation is completed. 5. The procedure is the same for installing other packages. #Sublime Text Create New Snippet (Tutorial #8) 1. Create a personal snippet. Tools-->Developer-->New Snippet. #Sublime Text Key Bindings (Tutorial #9) 1. Go to Preferences-->Key Bindings to create personal shortcut keys. #Sublime Text Macros (Tutorial #10) 1. Press Ctrl+Alt+Q or Tools-->Record Macro to records a macro. #Sublime Text Themes and Color Schemes (Tutorial #11) 1. IMO, use the default themes and color schemes. { "color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme", "font_size": 14, "ignored_packages": [ "Vintage", ], "theme": "Default.sublime-theme", } #Sublime Text Custom Settings and Split Layout (Tutorial #12) 1. Change custom settings go to Preferences-->Settings. 2. Make custom settings at Preferences-->Settings, Preferences.sublime-settings -- User tab. There is no exercise to create a custom setting. 3. Open three files. Press Alt+Shift+3 to open three columns. Drag the second file or second tab to the middle column. Drag the third file or third tab to the right column. 4. [Outdated] See the same file in two columns. Press Alt+Shift+2. Click anywhere in initial file to be seen in second column. File-->New View into File. Drag second tab to the right column. [Latest] File-->Split View opens same file in a new column. Shortcut keys are Alt, F, E. #Sublime Text Basics All the Best Features in One Video 1. File-->Open Folder-->select a folder-->Select Folder opens a new window. If Side Bar is open View-->Side Bar or Ctrl+K, Ctrl+B, or Ctrl+K,B then you see all the files and folders in the open folder. If you start typing in new window, Sublime Text creates a new file unnamed with its tab. 2. Copy and paste two different words to two different locations holding Ctrl. Copy daffy and tweety and paste to replace donaldduck and goofy. The number of copies must equal the number of pastes. Looney Tunes bugsbunny daffy sylvester tweety Disney mickeymouse donald duck goofy pluto Disney final result mickeymouse daffy tweety pluto Original Looney Tunes bugsbunny daffy sylvester tweety Disney mickeymouse donald duck goofy pluto 3a. Press Ctrl+P. Type @ followed by a function name to go to the function. Press Enter. Another way is press Ctrl+R. 3b. Press Ctrl+P. Type # followed by a text to go to the text. Press Enter. Press the arrow keys to move around the file with the text; e.g, press Ctrl+P, type #html, press up and down arrows. Press Esc to exit. 3c. Press Ctrl+P. Type : followed by a line number to go to the line number. Press Enter. Another way is press Ctrl+G. 3d. Press Ctrl+P to view recent files. You can peak at the files displayed on Ctrl+P GoTo Anything. Press Enter to open the file. 3e. Press Ctrl+P to view recent files. Type part of a file name followed by @ and a function name to view the file name's function. Press Enter to open the file at the location. 3f. Press Ctrl+P to view recent files. Type part of a file name followed by # and a text to view the file name's text. Press Enter to open the file at the location. 3g. Press Ctrl+P to view recent files. Type part of a file name followed by : and a line number to go to the file name's line number. Press Enter to open the file at the location. 4. Find-->Find in Files or Ctrl+Shift+F. Enter a word in Find field. Also, highlight a word, press Ctrl+Shift+F, the Find field is populated with the highlighted word. The Find Results tab is created with the search results from all files searched with number lines and file path. Double click the file path opens the file. Double click on the string opens the file and cursor is at the string line number. Scroll up and down without the mouse wheel. Press Ctrl+Up Arrow to scroll up. Press Ctrl+Down Arrow to scroll down. #17 Sublime Text Shortcuts and Tips 1. Skip the third selection of the word connormonitor while multi-selecting. Use Ctrl+D, Ctrl+K to skip the third selection. Ctrl+D, Ctrl+K is valid. You may hold Ctrl while pressing D and K. Replace connormonitor with handyman. connormonitor connormonitor connormonitor connormonitor connormonitor Solution handyman handyman connormonitor handyman handyman Original connormonitor connormonitor connormonitor connormonitor connormonitor 2. Create two columns pressing Alt+Shift+2. Open three colummns pressing Alt+Shift+3. Go back to one column pressing Alt+Shift+1. 3. Highlight the contents inside the parenthesis, brackets, or braces. pressing Ctrl+Shift+M. Press Ctrl+Shift+M again to highlight both its parenthesis, brackets, or braces. Also, press Ctrl+M to go to the end of the parenthesis, brackets, or braces when the cursor is inside. Press Ctrl+M, Ctrl+M to go to the beginning or go to the end. Ctrl+M is jump to matching parenthesis, bracket, or brace. Press Ctrl+Shift+M to select inside the paranthesis, brackets, or braces, then press left arrow to go to the beginning or the right arrow to go to the end. Use Ctrl+Shift+.*period* for Emmet HTML tags. onewordmovies = ("Babe","Parasite","UP!","Aliens","Casablanca") onewordmovies = {"Babe","Parasite","UP!","Aliens","Casablanca"} onewordmovies = ["Babe","Parasite","UP!","Aliens","Casablanca"] onewordmoviesnested = (("Babe","Parasite"),(("UP!"),("Aliens"),("Casablanca"))) Bonus 1. Autocomplete. Press Ctrl+Spacebar while the cursor is between h and r in the word three. Opens drop down suggestion window or snippets. three Ctrl+Spacebar works when typing a partial word. Type a partial word Casa, then press Ctrl+Spacebar to either complete the word Casablanca, or open drop down suggestion window or snippets if type a partial world Cas. Type Casa to the right of the arrow, then press Ctrl+Spacebar -->Casa Bonus 2. No need to type the underscore in a word to use the autocomplete or the drop down suggestion window or snippets. #Best Sublime Text Features and Shortcuts (Windows) 1a. Sublime Text has multiple tabs opened. Press Ctrl+Page Up open tab to the left. Press Ctrl+Page Down open tab on the right. Both cycles through the tabs. 1b. Press Alt+n for which n is the tab number. Alt+1 opens the leftmost tab. Alt+2 opens the tab on the right of the leftmost tab. Number 1 starts on the leftmost tab. 2. Press Ctrl+W to close a tab. Press Ctrl+Shift+T to reopen the recent closed tab. 3a. Press Ctrl+/ to comment a string. 3b. Press Ctrl+Shift+/ to block comment strings. #The Best Sublime Text 3 Settings and Packages 1. Press Ctrl++*plus key* to increase the font. Press Ctrl+- to decrease the font. #https://dev.to/weeb/30-of-the-most-useful-sublime-text-3-shortcuts-4d0p 1. Press F11 for full screen. Press Shift+F11 for distraction-free full screen. 2. Press Ctrl+R to search for methods or functions. 3. Press Ctrl+K, Ctrl+V or Ctrl+K,V to open a popup window with the last 15 copies. A personal tip is think of the letter V in Ctrl+V as paste. 4. Press Ctrl+Shift+A to select contents in a HTML element. 5. Swap text. Switch the first sentence and the fourth sentence positions. The first sentence is the fourth sentence. The fourth sentence is the first sentence. Highlight the first sentence. Highlight the fourth sentence. Press Ctrl+T. Sentences are swapped. Fourth sentence is orange is an orange color and a fruit. Second sentence is peanut butter and jelly sandwich. Third sentence is the Chicago Bulls won six NBA titles in the 1990s. First sentence is summer days are hot days. Fifth sentence is yellow mellow tellow jell-o. Sixth sentence is six words long. Original First sentence is summer days are hot days. Second sentence is peanut butter and jelly sandwich. Third sentence is the Chicago Bulls won six NBA titles in the 1990s. Fourth sentence is orange is an orange color and a fruit. Fifth sentence is yellow mellow tellow jell-o. Sixth sentence is six words long. 6. Press F9 to sort. 7. Press Alt+.*period* to close HTML tags. 8. Press Ctrl+Shift+Del or hold Ctrl, press K, press K to delete from the cursor to the end of the line. 9. Press Ctrl+Shift+Backspace or hold Ctrl, press K, press Backspace to delete from the cursor to the start of the line. Practice delete from the beginning of the cursor by placing the cursor anywhere on the sentence. Practice delete from the end of the cursor by placing the cursor anywhere on the sentence. Original Practice delete from the beginning of the cursor by placing the cursor anywhere on the sentence. Practice delete from the end of the cursor by placing the cursor anywhere on the sentence. Bonuses below starting with the number sign #. #Insert quotes between highlighted text 1. Press ' to insert single quotes at the first sentence below. Press Shift+' to insert double quotes at the second sentence below. Highlight the sentence and press ' to insert single quotes. Highlight the sentence and press " to insert double quotes. Original Highlight the sentence and press ' to insert single quotes. Highlight the sentence and press " to insert double quotes. #Select text between quotes 1. Install package Expand Selection to Quotes 2. Press Ctrl+' to highlight between the quotes sentence below. Press Ctrl+', ' or press Ctrl and single quote, then single quote to highlight between the quotes sentence and the quotes themselves. "Press Ctrl and single quote to highlight the sentence." "Press Ctrl and single quote, single quote to highlight the sentence and the double quotes." Original "Press Ctrl and single quote to highlight the sentence." "Press Ctrl and single quote twice to highlight the sentence and the double quotes." #Bookmarks Press Ctrl+F2 to insert a bookmark. Press F2 to go to next bookmark. Press Ctrl+Shift+f2 to delete a bookmark. Full menu path is Goto-->Bookmarks or Alt,G,B. #Center at cursor Press Ctrl+K, Ctrl+C. Full menu is Goto-->Scroll-->Scroll to selection or Alt,G,S,Enter. A personal tip is think of the letter C in Ctrl+C as center. #Select text or select string. Press Ctrl+Shift+Spacebar to select all text or most text depending on the file type. #Insert parenthesis, brackets, or braces between text or a sentence. 1. Highlight text or a string. 2. Press Shift+9 for parenthesis, [ for brackets, { for braces. Highlight these two sentences to enclose me inside parenthesis. Then press the left parenthesis. Solution (Highlight the two sentences to enclose me inside parenthesis. Then press the left parenthesis.) Original Highlight the two sentences to enclose me inside parenthesis. Then press the left parenthesis. #Dummy text Type lorem, press tab, press enter. Install Package Control Loremipsum https://packagecontrol.io/packages/LoremIpsum. Press Alt+Shift+L to add Lorem Ipsum text. Add more Lorem Ipsum text from the menu Edit-->Text-->Lorem Ipsum...-->select how much Lorem Ipsum text to add #Goto modifications 1. Press Ctrl+,*comma* to go to previous modified text in line number order. 2. Press Ctrl+.*period* to go to next modified text in line number order. #Sublime Text 4.0 New Features My Highlights 1. Hold Ctrl and click on another tab. A new column appears with the tab file opened. In other words, hold Ctrl, single mouse an open tab, a new column is open with the file in a new column. Click a tab to close the other column and its file. 2. File-->New View into File is replaced with File-->Split View. Split View opens the same file in a new column. Shortcut keys are Alt, F, E. 3. Python 3.8 API added. 4. Text drag and drop supported on Linux. Text drag and drop has been supported on Windows. 5. Join lines Ctrl+J is replaced with Ctrl+Shift+J. 6. Auto Complete Ctrl+Space supported on Linux. 7. Linux Alt+Shift+Left Mouse Click another way for column selection binding or create multiple cursor lines. Shift+Right Mouse Click also works. 8. Shift+F10 opens context menu. It's like right mouse click for pop up menu.