React + Tailwind + VSCode Cheat Sheet by Buddy
VS Code Shortcuts:
---------------------
1. Multi-cursor Editing: Alt + Click
2. Move Lines Up/Down: Alt + Up / Alt + Down
3. Wrap with Emmet: Type div>p then Tab
4. Rename Symbol: F2
5. Format Document: Shift + Alt + F
6. Quick Open Files: Ctrl + P
7. Command Palette: Ctrl + Shift + P
8. IntelliSense Trigger: Ctrl + Space
9. Switch Between Files: Ctrl + Tab
10. Auto Close Tag: Automatically closes JSX tags
React Useful Snippets:
-------------------------
- rfce: React Functional Component (React Snippets extension)
- imr: import React from 'react';
- clg: console.log();
TailwindCSS Handy Classes:
-----------------------------
- bg-blue-500 : Background color
- text-white : Text color
- p-4 : Padding
- m-2 : Margin
- rounded : Rounded corners
- shadow-md : Shadow
- flex, justify-center, items-center : Flexbox utilities
Pro Tips:
------------
- Always use "editor.formatOnSave": true
- Use Prettier + ESLint together for clean code
- Use Tailwind IntelliSense for class suggestions
Good Luck Buddy! You got this!