Sublime Text 4 for Python
- Run Code Fast: SHIFT + ENTER
- Split Editor: Click the "Split Editor" tab at the top right corner to see codes side by side or on vertical split. You can also split the terminal.
- Shortcut: CTRL + ` (backtick) toggles the terminal open/closed—handy for quick checks.
- Multi-Cursor Magic: Hold Alt and click in multiple spots—edit all at once. Try changing all fruit to food in the loop.
- Code Folding: Click the little > next to line numbers (e.g., by the for loop) to collapse code blocks—great for focus.
- Run Selection: Highlight a chunk of code, right-click, and pick “Run Selection/Line in Python Terminal”—test small bits without running everything.
- Shortcut: Ctrl + D selects the next instance of a word you’ve highlighted—edit multiple occurrences fast.
- Rename Fast: Highlight food_list, press F2, type foods_to_change + ENTER — VSC renames every instance in the function instantly.
- Hover Help: Hover over pluralize_foods after defining it—VSC shows a tooltip with its signature (parameters, etc.).
- Copilot Suggestions:
- Start typing for f in your script: see if Copilot guesses the loop. Accept it with Tab if it’s good, or tweak it.
- Auto-Complete Fun: Type pri and watch Copilot offer print()—saves keystrokes. Try it with list methods like .app for append().
- Multi-Line Help: Begin your list comprehension (e.g., [f), and let Copilot finish it. It might nail it or give you something funky to adjust.
- VSC Shortcut: Ctrl + Space forces Copilot to suggest even if it’s shy—great mid-line.
- Shortcut: Use Ctrl + . (Quick Fix) after typing fruits.—VSC will suggest list methods like .append() or .extend(). Pick one with arrow keys and Enter.