User guideCode Editor for Mac
Projects and files
Open a folder, group several folders in one project and find a file again.
Open the sample project
- In Projects, choose Open Sample Project. The sample includes a web page, a stylesheet, JavaScript and several Python scripts.
- In Files, expand Sample Project and open
index.html. Openstyle.cssas well. Use the file tabs above the editor to switch between them. - Change the heading in the HTML file and press ⌘S. Reopen the same project from Recents to work with that folder again.
Bring your own folders
Choose Open Folder… in Projects for an existing directory. For a site, choose the folder containing its pages, stylesheets and scripts together. This gives the preview a common root for relative links.
To keep several folders together, choose New Project, then use the + beside Folders in Files to add each root. Each root keeps its own tree, so two files named index.html can belong to different folders. Check the path above or below the editor before changing one.
Switch projects or find a file
On Mac, project tabs at the top switch workspaces. File tabs switch documents within the current project. To separate a project, open its tab’s context menu and choose Move Tab to New Window when available.
Use ⌘P to search for a filename. Use ⇧⌘F to search for text inside project files. If the editor is empty, select a file in Files. If Files is hidden, press ⌘B to show the sidebar.