When pressing Cmd+T in VS Code:
- If Terminal.app is already open → bring it to front (focus)
- If no Terminal window exists → create a new one
- Use the external macOS Terminal, not the built-in VS Code terminal
When pressing Cmd+T in VS Code:
| import pygame | |
| from queue import PriorityQueue | |
| WIDTH = 600 | |
| WIN = pygame.display.set_mode((WIDTH, WIDTH)) | |
| pygame.display.set_caption("My A* Algorithm") | |
| RED = (255, 0, 0) | |
| GREEN = (0, 255, 0) | |
| BLUE = (0, 255, 0) |
| import os | |
| import datetime | |
| def see_folder(folder: str): | |
| all_files = [] | |
| for folder in os.walk(folder): | |
| fold = folder[0].replace(" \ ".strip(), "/") | |
| for file in folder[-1]: | |
| if file.endswith(".jpg") or file.endswith(".png") or file.endswith(".mp4") or file.endswith(".mov") or file.endswith(".MOV") or file.endswith(".MP4"): |