Closed SamSverko closed 5 years ago
I've been using the Atom IDE because it's free, developed by GitHub, has great package add-ons, and supports open source. I used to work with Sublime, but didn't want to pay for it and the upgrade now
prompt got really annoying after a while. I tried playing around with Visual Code Studio, but it just seems so bulky for what I need. I'm sure it's great (considering most developers apparently use it), but it's not for me at the moment.
To install a package on Atom, go to Settings / Install / then search for the package
.
To manage installed packages, go to Settings / Packages
If I can offer any advice when it comes to IDE packages, is that I found adding packages only after you've encountered a particular problem you need fixed, or you realize you are spending way too much time doing something, is the way to go. Basically only add packages that you will use. If you throw on a dozen packages right when you first download Atom, you will be overwhelmed with that each of them can do. Slowly introduce a package and familiarize yourself with each one before overloading the IDE.
A few packages that really help my JavaScript workflow:
Beautify editor contents
. It will then properly format/ auto-indent your json code.<editor-fold>
where you want the fold to begin, and close it with </editor-fold>
. Works well with super long code where you might need the middle part, and can fold in up the upper and lower sections, just an example.html
by creating several elements using shorthand code.Example 1: Let's say you're starting a blank html page, just type in html
and hit enter. This will expand that to this:
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
</body>
</html>
divs
, each with the class game-card
. Simply type in div.game-card*3
and hit tab. It will generate this:
<div class="game-card"></div>
<div class="game-card"></div>
<div class="game-card"></div>
Let's break down what happened, div.game-card*3
:
div
- create a div (can use any element, <li>, <p>...
)..game-card
- add in a class. Think css
, where .
's are classes and #
's are id's. Meaning, if you wanted to create a div
with an id
of main
, just type div#main
and hit tab.*3
- create three of these (you can use any number).Open in Browser
. This will open the file in your default browser..js
), hit the shorcut cmd + i
and it will display the console at the bottom of the Atom editor. This one is great if you're playing around with some JavaScript and you don't want to use an online code editor like JSFiddle or CodePen.core package
). It allows you to preview markdown files as you compose them.file.md
, select control + shift + m
and the markdown preview window will appear beside your code. Keep that open to preview the markdown file while you're editing!clip-path
property allows you to make complex shapes in CSS by clipping an element to a basic shape (circle, ellipse, polygon, or inset), or to an SVG source.I hope this little guide helps you with your journey as a developer. Feel free to reach out to me for anything :)
Lastly, I still consider myself a newish
developer. Still making my way and learning a ton. I am currently learning towards full stack MERN development. While I complete tutorials I am also working towards building a web app, Flatbread. This app will curate recipes based on what's on sale. I'm trying to combine my love of code with cooking (and saving money). As you can see by the repo, it's juuust starting out. I would like it to be an open-source project for people to learn and collaborate. I'm not trying to push anything here, but if you are looking for a project to work towards, this one is open to contributors of any skill-level :)
Question Source.