-
Notifications
You must be signed in to change notification settings - Fork 3
Tutorial: Atom & Pycharm IDE
Atom is a light-weight text editor that provides a user-friendly GUI for coding projects. It has many addons packages that can turn Atom into a smart programming environment in different languages (Python, HTML/CSS, Ruby,etc).
Go to https://atom.io/ and download the .deb
(Linux) installation file.
To open a file using Atom in terminal (without the $
sign)
$ atom <file_name>
To open the current folder using Atom in terminal:
$ atom .
PyCharm is an integrated development environment (IDE) for the Python programming language. Different from a text editor (e.i. Notepad, Sublime Text, Atom,...), an IDE provides comprehensive facilities to computer programmers for software development. Pycharm, for example, provides a source code editor, build automation tools, and a debugger.
Pycharm is one of many IDEs developed by JetBrains. JetBrains offers students free premium access to all their IDEs, which is a great opportunity to learn and get used to the IDE interface.
Use Pycharm when you work on a big project with multiple connected files. If you just edit only one file, you can just use Atom or Sublime Text.
- First download the JetBrains toolbox: https://www.jetbrains.com/toolbox/app/.
- While waiting for the download, create a student account for JetBrains with your student email: https://www.jetbrains.com/student/.
- Check your mailbox and verify your account.
- Install JetBrains toolbox, sign in with your created account and download Pycharm Professional.
- Follow this instruction to set up Pycharm with ROS: http://wiki.ros.org/IDEs#PyCharm_.28community_edition.29. Note: if you update Pycharm using JetBrains toolbox, then the
.desktop
file will be reset and you need to do this step again. - These shortcuts might be useful for you when using Pycharm. But first, let's set up two of them:
Go to File > Settings > Keymap
and type close in the search bar inside the Keymap panel. Under Editor Tabs, change key shortcuts in Close to ctrl + w
and in Close Others to ctrl + shift + w
.
-
ctrl + w
: close the current tab -
ctrl + shift + w
: close other tabs -
ctrl + /
: comment out the highlighted lines of code -
ctrl + alt + L
: auto-indent the file -
ctrl + y
: delete the highlighted lines of code -
ctrl + F
: find text in a file. -
ctrl + R
: replace text in a file -
ctrl + shift + F
: find text in a project, module, directory or scope (will not search for file names) -
ctrl + shift + N
: look for files with a specific name
- Font-size: the default font size is quite small. In order to change it, you can go to
File > Settings > Editor > Fonts
and update the size to 16.
If you need help, come find Merwan Yeditha [email protected] or Audrey Lee [email protected]!