Class 2 - The Coder’s Computer

Lab 2 - Set Up new terminal and VS Code
Computer Setup Guide
- Tree: Allow you to look at directory structure and files within a directory
- Node.js: Helps you execute a program in javascript
- ESLint: Find and fix problems in javascript
Read 1 - Learning Markdown Reflection and Discussion
Resources Link/Pages:
- Choosing a Text Editor
- Most important Features to consider when choosing a text editor are code completion, syntax highlighting, variety of themes, and extensions to choose from.
- The Command Line
- A command line or terminal is a text based interface where you can enter in commands that interact with your computer system.
- Basic Navigation
- About Files
Written Class Notes
- Whatever is after the command is called the argument. There needs to be a space between the command and argument
- ls l gives additional information. ls a shows hidden files as well
- Clear clears the terminal but you can scroll up and whatever you entered is still there
- cd hit tab or enter a few letteres will automate choices and directories for you
- Hit enter after each command
- cd .. is back one, . stay where you are, … is back two directories
- code . opens code editor. There is a space between code and .
- When creating new directories do not use space either use no space or dashes ex: newFile or new-File. If you do mkdir my folder it will create two folders with those names
- In VS Code: md should end with one line space, space after heading, emmet abbreviation are “universal” so by adding ! will give you choices and will automatically provide you the basic codes needed ex: !doctype gives you the code people almost always use in HTML
Answer
- What are four important features to look for in a text editor?
- Code completion, syntax highlighting, variety of themes, and extensions to choose from.
- What do the following commands do?
- pwd: Stands for Print Working Directory and tells you what directory you are currently working on.
- ls: Stands for list and tells you what is in the directory.
- cd: Stands for change directory to a different directory by adding a name as an argument after or leaving it blank will take you back home
- mkdir: Stands for make directory
- touch: Creates a new file where you need to name and add what kind of file it is ex.README.md is markdown file, README.html is an HTML file.
- Can you explain what is happening in the following scenario if these commands and arguments are entered into the command line? (Arguments are extra instructions given to a command.)
- cd projects: You change directory into the projects directory location.
- mkdir new-project: You make a new directory titled new-project
- touch new-project/newfile.md: You make a new markdown file within the new-project directory
- cd ..: You change directory back to the previous directory you were working on
- ls projects/new-project: You list the items in the new-project directory that is within the projects directory