Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML How to Make a Website HTML First Build Structure

Keyboard shortcuts

I noticed that on my Windows system, a few of the shortcuts in the Build Structure video did not work for me. I had to use others instead. Is there an error in the video, or is there something I am missing here?

The ones that did not work were: "Move Across Text - CTRL + Arrow Key (Windows)"

Instead I had to use "Home" or "End"

and

"Highlight Text - CTRL + Shift + Arrow Key (Windows)"

Instead I had to use Shift + Home or Shift + End

I found the shortcuts that worked for me at this link, in the Text Editing section: http://www.w3schools.com/tags/ref_keyboardshortcuts.asp

Kang-Kyu Lee
Kang-Kyu Lee
52,045 Points

You're right, generally it simply put (mac OS) Command key into (windows) Control key here. I don't know why... maybe they don't use Windows PC in treehouse.

2 Answers

Isaac Asante
Isaac Asante
4,752 Points

For "Move Across Text", the CTRL + Arrow Key short will let you jump word by word, instead of moving by character when using only the Arrow keys. This way, you can quickly move across elements, values and attributes. From my knowledge, using Home or End will only take you at the beginning or end (respectively) of your document or code.

For "Highlight Block of Text", you may just try this: Click where you want to start highlighting. Press and hold Shift, then click where you want to stop highlighting.

Does anyone know the hotkey for aligning code in workspaces correctly? It looks like my indendations are jumping to incorrect places. Specifically my UL in the code below when I copy and pasted...

<html>
  <head>
    <title>JavaScript and the DOM</title>
    <link rel="stylesheet" href="css/style.css">
  </head>
  <body>
    <h1 id="myHeading">JavaScript and the DOM</h1>
    <p>Making a web page interactive</p>
    <p>Things that are purple:</p>
<ul>
  <li>grapes</li>
  <li>amethyst</li>
  <li>lavender</li>
  <li>plums</li>
</ul>
    <script src="app.js"></script>
  </body>
</html>