forked from adobe/brackets
-
Notifications
You must be signed in to change notification settings - Fork 279
Tech Summit Product Fair Brackets
dangoor edited this page Jan 31, 2013
·
3 revisions
- Launch Brackets if it's not already running. You should be in the "citrus completed" project, so the "citrus completed" folder is visible in the Project panel on the left, and you see "css" and "images" folders and an "index.html" file in the project tree.
- If the "citrus completed" is not the current project, click on the triangle next to the project name. If the dropdown show the "citrus completed" project, then select it.
- If the project is not in the recent projects list, use File > Open Folder and browse to the "brackets/test/smokes/citrus completed" folder.
- Click on index.html. The contents of the file should be displayed in the editor.
- Double-click on index.html. Notice that it's added to the working set above the project tree, and the selection changes to the working set.
- In the document, set the cursor in the "<body>" tag immediately before the ">".
- Enter a space to pop up a list of attribute hints. You can navigate the list with up/down arrow the mouse or keyboard.
- Hit Esc key to dismiss the code hints list, then delete the space so the cursor is after the "y" of "body".
- Hit Cmd/Ctrl-E to invoke Quick Edit. It should list a single CSS body rule on the right and show the contents of the rule on the left.
- Click the lightning bolt in the upper right. You should see the page load in the Chrome browser.
- Mac only: after a few seconds you should get a dialog saying you need to relaunch Chrome. Click "Relaunch". Chrome should relaunch and open the page.
- Back in Brackets, edit the background color for the tag in the inline editor (#D90 is a nice color). Notice that the color changes in Chrome as you type. Also verify that the CSS file is added to the working set with the dirty bit set.
- Hit Cmd/Ctrl-E. Verify that the inline editor closes.
- Put the cursor immediately after the "<a" in one of the "<a>" tags in the navbar.
- Hit Cmd/Ctrl-E. In the inline editor, you should see a number of rules in the list on the right. Select different rules on the right to change rules.
- Make an edit to some text in HTML page that is visible in browser. Note: some text in the page is replaced by logo image via CSS (e.g. first h1 tag and first h2 tag) so edits will not be visible; try updating text in News section.
- Verify that text has not yet changed in browser. Use Cmd/Ctrl-S to save changes to HTML file. Verify that saved text changes and unsaved CSS changes are shown in browser.
- Undo changes in HTML file and save to get back to original state.
- Press shift-cmd-O/shift-ctrl-O (or select Quick Open from the Navigate) menu. You'll see a Quick Open dialog appear at the top of the editor.
- Type "d" and you'll see all of the files in the project that contain a "d" listed. The top one is "desktop.css".
- Press enter to open that file
- Navigate to different rules within the CSS file. You'll see the parts of the page that are affected by the rule highlighted in the web browser. This is called Live Highlighting (if you don't see the highlights, check the File menu and make sure that Live Highlighting has a checkmark next to it)
- If you make any changes to the CSS, you'll see those changes reflected immediately in the browser.
- Undo any changes you made to the CSS.
- Disconnect Live Preview.
- Close all files and discard changes.
Follow the steps above, then:
- Use the project select to choose the brackets project
- Use Navigate/QuickOpen to open a file
- Type "btd" into the QuickOpen dialog. The top match is "brackets_theme_default.less"
- Let's try editing the value for
@background-color-3
. Put the cursor somewhere in the#f8f8f8
and press cmd/ctrl-E for Quick Edit (or select Quick Edit from the Navigate menu) - You'll see a color picker pop up. Pick something that's not too dark.
- Press cmd-S to save
- Press cmd/ctrl-R or select Reload from the Debug menu to restart Brackets.
- See Brackets restart with the lovely color you chose as the background. Nearly everything in Brackets can be changed this easily.
- Navigate back to the
@background-color-3
variable and set the value back to#f8f8f8