Loading rust_01_setup...
cat >~/.rustfmt.toml <<'EOF' edition="2021" max_width=78 fn_args_layout="Vertical" EOF
mkdir -p ~/.local/share/bash-completion/completions for cmd in rustup cargo ; do rustup completions bash ${cmd} >~/.local/share/bash-completion/completions/${cmd} done
xcode-select --install
cat >~/.rustfmt.toml <<'EOF' edition="2021" max_width=78 fn_args_layout="Vertical" EOF
mkdir -p ~/.zfunc for cmd in rustup cargo ; do rustup completions zsh ${cmd} >~/.zfunc/_${cmd} done
echo @' edition="2021" max_width=78 fn_args_layout="Vertical" '@ | Out-File -Encoding utf8 $Env:USERPROFILE\.rustfmt.toml
rustup completions
rustup update
cargo install cargo-cache
cargo cache -r all
codepermette de le lancer. Une fois l'éditeur lancé, les préférences générales seront exprimées en ouvrant View / Command Palette..., en choisissant Preferences: Open User Settings (JSON) et en complétant de cette façon :
{ "window.restoreWindows": "none", "workbench.startupEditor": "none", "workbench.editor.wrapTabs": true, "editor.minimap.enabled": false, "editor.rulers": [ 80 ], "editor.inlayHints.enabled": "off", "editor.formatOnSave": true, "editor.renderWhitespace": "all", "editor.unicodeHighlight.nonBasicASCII": false, "editor.multiCursorModifier": "ctrlCmd", "files.insertFinalNewline": true, "files.hotExit": "off", }
[ { "key": "ctrl+shift+j", "command": "editor.action.joinLines" }, { "key": "ctrl+m", "command": "editor.action.jumpToBracket" }, ]
sublpermette de le lancer. Une fois l'éditeur lancé, les préférences générales seront exprimées dans la partie droite de la fenêtre ouverte par le menu Preferences / Settings :
{ "color_scheme": "Monokai.sublime-color-scheme", "draw_white_space": ["all"], "font_size": 12, "hot_exit": "disabled", "rulers": [80], "overlay_scroll_bars": "disabled", "tab_completion": false, "auto_complete_include_snippets": false, "tab_size": 4, "translate_tabs_to_spaces": true, "ensure_newline_at_eof_on_save": true, "ignored_packages": ["Vintage",], "update_check": false, }
{ "error_messages": false, }
{ "show_diagnostics_panel_on_save": 0, }
{ "settings": { "rust-analyzer.inlayHints.enable": false, }, // use the "command" setting ONLY on ENIB workstations // "command": ["/local/rust/rust-analyzer"], }