Issue
I used to use Spyder IDE for my python programming and just recently switched to Atom. In Spyder I used to get inline errors and warnings highlighting. For example if I make an unwanted indent or forgot any brackets and etc... But in Atom I do not get any such inline warnings. Is there any setting or any plugin I can install to make it possible?
Solution
First you need to decide on which linter you want to use, e.g. flake8
or pycodestyle
. The process is the same for either choice, let's use flake8
as an example.
- Make sure
flake8
is installed on your system (see documentation). This will be used by the linter package we install in step 3. - Install the basic
linter
provider for Atom. This is a requirement by the linter package in the next step. - Install
linter-flake8
While this example serves well to install individual linters, there are–of course–many alternatives to choose from. Since this is a matter of preference, you search what other options are available.
Lastly, take note that many linter packages can be further customized through package settings. Refer to their README for details.
Answered By - idleberg
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.