Programmation

MéthodeMyScenari et ScenariChain

1
echo "deb [arch=amd64] https://deb.scenari.software stable main" | sudo tee -a /etc/apt/sources.list.d/scenari.list
2
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0B77ECB798BEDF66
3
sudo apt update
4
sudo apt install scenarichainng-desktop5.0.fr-fr

Récupération des modèles documentaires depuis le site https://download.scenari.software/fr/

MéthodePython

1
Python
2
=======
3
sudo apt install python3 python3-pip python3-tk git python3-distutils
4
sudo apt install python-is-python3
5
pip3 install esptool
6
7
Pour thonny
8
-----------
9
sudo apt install thonny

Visual Studio Code

MéthodeVisual Studio Code

Extensions à installer :

  • French Language Pack for Visual Studio

  • CodePython Microsoft

  • PlatformIO ide

Attention

Linux users have to install udev rules for PlatformIO supported boards/devices cf

https://docs.platformio.org/en/latest/faq.html#platformio-udev-rules

1
curl -fsSL https://raw.githubusercontent.com/platformio/platformio-core/master/scripts/99-platformio-udev.rules | sudo tee /etc/udev/rules.d/99-platformio-udev.rules
2
sudo service udev restart
3
sudo usermod -a -G dialout $USER
4
sudo usermod -a -G plugdev $USER
5

ComplémentESP32

ajouter dans platformio.ini

monitor_speed = 115200

Sublime Text

MéthodeSublime Text

1
Sublime text
2
-------------
3
wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
4
echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
5
sudo apt-get update
6
sudo apt-get install sublime-text
7

MéthodePackage Control

  • Commande Tools > Install Package Control ;

MéthodeModification des raccourcis clavier

Commande Preferences > key Bindings

{ "keys": ["f1"], "command": "show_overlay", "args": {"overlay": "command_palette"} },

{ "keys": ["ctrl+v"], "command": "paste_and_indent" },

{ "keys": ["ctrl+shift+v"], "command": "paste" },

{ "keys": ["ctrl+shift+r"],"command": "reindent" }

MéthodePackages à installer

  • CodeComplice : provides smart completions. The package provide support for all major languages including JavaScript, Mason, XBL, XUL, RHTML, SCSS, Python, HTML, Ruby, Python3, XML, XSLT, Django, HTML5, Perl, CSS, Twig, Less, Smarty, Node.js, Tcl, TemplateToolkit, PHP.

  • emmet :

  • Sublime Linter

  • Terminal : ouvre une fenêtre de terminal