Skip to content

Instantly share code, notes, and snippets.

@Tardo
Last active June 4, 2019 23:26
Show Gist options
  • Save Tardo/52a08cb7f98ae3cbfafdf47203c29a4b to your computer and use it in GitHub Desktop.
Save Tardo/52a08cb7f98ae3cbfafdf47203c29a4b to your computer and use it in GitHub Desktop.
Atom Packages & Tips

Here can found usefull packages to develop for Odoo (Python Web Dev) with Atom.

** To install packages in Atom press Control + , an go to Install section.

Packages

General

  • minimap
  • minimap-autohider
  • file-icons
  • highlight-selected
  • tree-view-git-status
  • auto-detect-indentation (Usage: Statusbar Selector)
  • tree-view-panes (Usage: TreeView 'Open Files' Section > Contextual Menu)
  • hey-pane (Usage: Alt + Shift + K)
  • hyperclick (Usage: Control + LClick)
  • atom-beautify

reStructuredText

  • language-restructuredtext
  • rst-preview (Usage: Control + Shift + R) [Require pandoc]

CSS

  • ide-css
  • pigments
  • linter-sass-lint
  • linter-less
  • linter-csslint

XML

  • linter-xmllint
  • autocomplete-xml

Javascript

  • autocomplete-javascript
  • linter-eslint

Python

  • autocomplete-python
  • ide-python
  • python-indent
  • linter-python [Require pylama + pylama-pylint]

Tips

Recommended Settings

  • Core
    • Disable "Exclude VCS Ignored Paths"
  • Editor
    • Enable "Show Indent Guide"
    • Enable "Show Invisibles"
  • Package "autocomplete-python"
    • Add Odoo folder in "Extra Path For Packages"
  • Package "linter-python"
    • Enable "With Pep8"
    • Enable "With Pylint"
  • Package "linter-eslint"

Basic Keybinds

  • Control + \ -> Toggle TreeView
  • Control + Shift + \ -> Reveal current file in treeview
  • Control + , -> Open Settings
  • Control + Shift + (8 or 9) -> Toggle Github and Git Pane
  • Control + F -> Searches the current file
  • Control + Shift + F -> Searches all files
  • Control + G -> Go to line
  • ALT + (1 or 2 or 3 or N...) -> Tabs Navigation

Basic Usage

  • One click on tree view open file in preview mode (If not changed it will self-close when select other file)
  • Two clicks on tree view open file in edition mode (Needs manual action to close)
  • You can search on specific file types using wildcards (*.py)
  • You can search on specific project (my_project/*.py)

** Read Atom placeholders

** Take a look at the "Packages" menu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment