Atom System Requirements. Operating Systems macOS 10.9 or later, Windows 7 and later, and Linux. این نرم افزار بصورت متن باز و رایگان ارائه شده است. دانلود Atom text editor 1.52.0 x86. دانلود Atom text editor 1.52.0 x64. Atom/language-php#394 - Improve php syntax highlighting Read the full changelog Atom is a free, cross-platform, and open-source graphical software that has been designed from the ground up to act as a hackable text editor and programmer's editor application that helps any aspiring developer to write code without too much hassle.
Installing Atom on Windows. Atom is available with Windows installers that can be downloaded from or from the Atom releases page.Use AtomSetup.exe for 32-bit systems and AtomSetup-x64.exe for 64-bit systems. This setup program will install Atom, add the atom and apm commands to your PATH, and create shortcuts on the desktop and in the start menu. Leading Open Source API Client, and Collaborative API Design Platform for GraphQL, and REST. Atom text editor free download - Atom, Plain Text Editor, TextWrangler, and many more programs.
In this post we’ll talk about the Atom editor which is, as they say, A hackable text editor for the 21st Century.
It’s a really nice, open source and modern editor, with a broad community that provides different and new packages and functionalities. Have you tried it yet?
Here, you’ll learn how to install it and how to configure it to write Python code. Let’s start! ?
First, download Atom from the official webpage.
Once installed, if you have a Mac or Windows, you’ll have two commands available: atom and apm. The first one is for opening the Atom editor, and the second one for installing Atom packages. We’ll see an example of both in the following.
Edit a Python file and use Atom’s Autocomplete
Let’s start by creating a Python file with:
This will open the file in Atom, and you’ll see the containing folder with all its contents on the left sidebar.
In the new file, if you type de, you’ll see that it suggests if you want to create a new function. This is because Atom has detected that the file extension is a Python extension.
If you type the Tab key, you’ll see a template for a new function:
Note that you have the fname highlighted. This is because you can now type the name of your function and it will replace fname. Let’s name our function product.
Next, if you hit the Tab key again, the arguments of the function, arg, will be now selected. Just write x,y, as we need two different arguments for our function.
Finally, hit the Tab key again to select the body of our function, pass, and replace it for our code. The end function should be something like:
2
returnx *y
Also notice the blue circle next to the file name. This means that there are unsaved changes in your current file. You can save it just typing the usual cmd+c (or ctrl+c in windows).
Linter for Atom
Linter is an Atom package that provides a top level API so that there is a unification among all the linter atom plugins. This means that all the extra packages that you install, that highlight your code (for example to detect errors) will use a unified method.
To install it, just type:
Next, we’re going to install a Python Linter package, to help us detect errors in our Python code.
Download Atom Text Editor Mac
This package is called linter-flake8 and it’s an interface to flake8. To install it, you need to run:
If you installed the linter-flake8 package discussed in the previous section, you already have automatic PEP8 validation ?
Keybindings customisation
In the same Preferences panel, you can see the Keybindings menu on the left. There, you’ll find a list of all the default keybindings active in your Atom editor.
However, by default, Atom confirms an autocomplete suggestion with both the Tab and Enter keys. But I only want to use the Tab key.
Atom Editor Download
In order to disable Enter as an autocomplete confirm key, we need to go to the Keybindings menu where you’ll see a link that says your keymap file. Click on that link to open the keymap.cson file.
There, you need to write:
2
# Disable Enter key for confirming an autocomplete suggestion
'enter':'editor:newline'
Save the file and you’ll see the changes immediately. No need to restart Atom ?
Other Useful Packages
Project manager: a package for saving your projects.
Atom Django: Django support for Atom
Minimap: Displays a small map of the current file on the right side of your document (like Sublime Text by default).
Do you use other Packages? Write a comment below about them! ?