Skip to content

Instantly share code, notes, and snippets.

@danilosilvadev danilosilvadev/VSCODE.md
Last active Oct 11, 2019

Embed
What would you like to do?
deuMerda é um gist para caso eu precise reinstalar o ubuntu e suas dependências.

plugins

  • toggl
  • evernote
  • instapaper
  • oneTab
  • colorZilla
  • Web developer
  • adBlock
  • requestly
  • discord
  • tradutor
  • grammarly
  • momentum
  • pinterest
  • gridrule
  • trello all-in-one
  • screen castify
  • news feed enradicator
  • last password
  • octotree
  • vigieaqui
  • measure dimensions

Programas

Gnome

sudo apt-get update

sudo apt install ubuntu-gnome-desktop

I3

echo "deb http://debian.sur5r.net/i3/ $(lsb_release -c -s) universe" | sudo tee /etc/apt/sources.list.d/i3.list

sudo apt-get update

sudo apt-get --allow-unauthenticated install sur5r-keyring

sudo apt-get update

sudo apt-get install i3

GIT

sudo apt-get update

sudo apt-get install git

NodeJS

sudo apt-get update

sudo apt-get install nodejs

NPM

sudo apt-get install npm

YARN

curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list

sudo apt-get update && sudo apt-get install yarn

Heroku

curl https://cli-assets.heroku.com/install-ubuntu.sh | sh

Atom

sudo add-apt-repository ppa:webupd8team/atom

sudo apt update

sudo apt install atom

VSCode

curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

sudo apt update

sudo apt install code

Nano

sudo apt-get update

sudo apt-get install nano

ZSH

apt-get install zsh

apt-get install git-core

wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh

chsh -s which zsh //click at edit to copy the aspas simples

sudo shutdown -r 0

ARandR - Program to 2 screens

aptitude install arandr

Genymotion

  1. Install VirtualBox

  2. Download Genymotion

  3. Install the download via terminal

chmod +x genymotion-versoion.bin

sudo ./genymotion-versoion.bin

Atom

Packages:

emmet

Atom Live Server

Todo-show

Ask-Stack

Atom Beautify

Highlight-Selected

minimap

autocomplete-paths

indent-guide-improved

scroll-throught-time

hey-pane

atom-spotify2

atom-clock

git-time-machine

Config

add at config editor: scroll past the end

# This file has been auto-generated by i3-config-wizard(1).
# It will not be overwritten, so edit it as you like.
#
# Should you change your keyboard layout some time, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see https://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below.
font pango:monospace 8
# This font is widely installed, provides lots of unicode glyphs, right-to-left
# text rendering and scalability on retina/hidpi displays (thanks to pango).
#font pango:DejaVu Sans Mono 8
# Before i3 v4.8, we used to recommend this one as the default:
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1
# The font above is very space-efficient, that is, it looks good, sharp and
# clear in small sizes. However, its unicode glyph coverage is limited, the old
# X core fonts rendering does not support right-to-left and this being a bitmap
# font, it doesn’t scale on retina/hidpi displays.
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Return exec gnome-terminal
# kill focused window
bindsym $mod+q kill
# start dmenu (a program launcher)
bindsym $mod+d exec dmenu_run
# There also is the (new) i3-dmenu-desktop which only displays applications
# shipping a .desktop file. It is a wrapper around dmenu, so you need that
# installed.
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop
# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+ccedilla focus right
# alternatively, you can use the cursor keys:
bindsym $mod+Left focus left
bindsym $mod+Down focus down
bindsym $mod+Up focus up
bindsym $mod+Right focus right
# move focused window
bindsym $mod+Shift+j move left
bindsym $mod+Shift+k move down
bindsym $mod+Shift+l move up
bindsym $mod+Shift+ccedilla move right
# alternatively, you can use the cursor keys:
bindsym $mod+Shift+Left move left
bindsym $mod+Shift+Down move down
bindsym $mod+Shift+Up move up
bindsym $mod+Shift+Right move right
# split in horizontal orientation
bindsym $mod+h split h
# split in vertical orientation
bindsym $mod+v split v
# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+w layout tabbed
bindsym $mod+e layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# Define names for default workspaces for which we configure key bindings later on.
# We use variables to avoid repeating the names in multiple places.
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"
set $ws6 "6"
set $ws7 "7"
set $ws8 "8"
set $ws9 "9"
set $ws10 "10"
# switch to workspace
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace $ws7
bindsym $mod+8 workspace $ws8
bindsym $mod+9 workspace $ws9
bindsym $mod+0 workspace $ws10
# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace $ws1
bindsym $mod+Shift+2 move container to workspace $ws2
bindsym $mod+Shift+3 move container to workspace $ws3
bindsym $mod+Shift+4 move container to workspace $ws4
bindsym $mod+Shift+5 move container to workspace $ws5
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace $ws7
bindsym $mod+Shift+8 move container to workspace $ws8
bindsym $mod+Shift+9 move container to workspace $ws9
bindsym $mod+Shift+0 move container to workspace $ws10
# reload the configuration file
bindsym $mod+Shift+c reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"
# resize window (you can also use the mouse for that)
mode "resize" {
# These bindings trigger as soon as you enter the resize mode
# Pressing left will shrink the window’s width.
# Pressing right will grow the window’s width.
# Pressing up will shrink the window’s height.
# Pressing down will grow the window’s height.
bindsym j resize shrink width 10 px or 10 ppt
bindsym k resize grow height 10 px or 10 ppt
bindsym l resize shrink height 10 px or 10 ppt
bindsym ccedilla resize grow width 10 px or 10 ppt
# same bindings, but for the arrow keys
bindsym Left resize shrink width 10 px or 10 ppt
bindsym Down resize grow height 10 px or 10 ppt
bindsym Up resize shrink height 10 px or 10 ppt
bindsym Right resize grow width 10 px or 10 ppt
# back to normal: Enter or Escape or $mod+r
bindsym Return mode "default"
bindsym Escape mode "default"
bindsym $mod+r mode "default"
}
# color defines for zenburn styled i3
set $bg #2c2c2e
set $fg #9f9f9f
set $hi #efef8f
set $ac #2e302e
set $tx #f4d833
set $ia #8f8f8f
set $be #8faf9f
set $yw #ccdc90
set $gn #88b090
set $rd #e89393
# set some nice colors border background text
client.focused $ac $ac $tx
client.unfocused $bg $bg $ia
client.focused_inactive $bg $bg $ac
client.urgent $rd $rd $tx
bindsym $mod+r mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
colors {
separator #666666
background #222222
statusline #dddddd
focused_workspace #0088CC #0088CC #ffffff
active_workspace #333333 #333333 #ffffff
inactive_workspace #333333 #333333 #888888
urgent_workspace #2f343a #900000 #ffffff
}
position top
}
# Enable brightness control.
bindsym XF86MonBrightnessUp exec light -A 10
bindsym XF86MonBrightnessDown exec light -U 10
# Touchpad controls
bindsym XF86TouchpadToggle exec .config/i3/togg$
# Media player controls
bindsym XF86AudioPlay exec playerctl play
bindsym XF86AudioPause exec playerctl pause
bindsym XF86AudioNext exec playerctl next
bindsym XF86AudioPrev exec playerctl previous
bindsym $mod+Shift+q exec i3lock -i ~/Desktop/fullmetal.png
# Make the currently focused window a scratchpad
bindsym $mod+Shift+minus move scratchpad
# Show the first scratchpad window
bindsym $mod+minus scratchpad show
# Wallpaper
exec --no-startup-id feh --bg-scale ~/Desktop/codeanarchy.png
# fancy information
exec --no-startup-id conky -c ~/Desktop/codeanarchy.png
# use xcompmgr for fade between workspaces
exec --no-startup-id xcompmgr -c -f -n
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -5% #decrease sound volume
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
exec --no-startup-id pulseaudio
# printscreen
bindsym $mod+p exec gnome-screenshot
# open nautilus
bindsym $mod+n exec nautilus
# Wifi connections
exec --no-startup-id nm-applet

Plugins

  • eslint
  • tslint
  • prettier
  • spotify
  • zen tabs
  • string manipulation
  • jupyter notebook
  • python
  • anaconda
  • tab terminal
  • hungry back
  • back and forward
  • beautify
  • ES7 React/Redux/GraphQL/React-Native snippets
  • live share
  • file icons
  • banner comments
  • vscode icons
  • Bracket Pair Colorizer 2
  • gitlens
  • git history
  • import cost
  • svelte
  • angular

Themes

  • palenight(and choose the italic)
  • spotify
  • atom one dark
  • horizon italic
  • kimbie dark
  • one dark pro italic
  • one monokai italic

configuration for fonts

Download and install Fira Code iScript font. Then add this to code settings.json:

 "editor.fontLigatures": true,
  "editor.fontFamily": "Operator Mono, 'Fira Code iScript', Consolas, Menlo, Monaco, 'Courier New', monospace"

PS: Remember to use a theme that is in italic.

Here another italic option: https://github.com/kosimst/Firicico

EXTRA CONFIGS:

{
    "editor.tabSize": 2,
    "editor.renderWhitespace": "all",
    "workbench.iconTheme": "vscode-icons",
    "editor.detectIndentation": false,
    "workbench.editor.enablePreview": false,
    "emmet.includeLanguages": {
    "erb": "html",
    "js": "html"
    },
    "workbench.colorTheme": "Palenight Italic",
    "terminal.explorerKind": "external",
    "window.zoomLevel": 0,
    "explorer.openEditors.visible": 1,
    "workbench.startupEditor": "newUntitledFile",
    "editor.tokenColorCustomizations": {"textMateRules": [
      {
        "scope": [
          //following will be in italics (=Pacifico)
          "comment",
          "entity.name.type.class", //class names
          "keyword", //import, export, return…
          //"support.class.builtin.js", //String, Number, Boolean…, this, super
          "storage.modifier", //static keyword
          "storage.type.class.js", //class keyword
          "storage.type.function.js", // function keyword
          "storage.type.js", // Variable declarations
          "keyword.control.import.js", // Imports
          "keyword.control.from.js", // From-Keyword
          //"entity.name.type.js", // new  Expression
          "keyword.control.flow.js", // await
          "keyword.control.conditional.js", // if
          "keyword.control.loop.js", // for
          "keyword.operator.new.js", // new
        ],
        "settings": {
          "fontStyle": "italic"
        }},
        {
          "scope": [
            //following will be excluded from italics (My theme (Monokai dark) has some defaults I don't want to be in italics)
            "invalid",
            "keyword.operator",
            "constant.numeric.css",
            "keyword.other.unit.px.css",
            "constant.numeric.decimal.js",
            "constant.numeric.json",
            "entity.name.type.class.js"
          ],
          "settings": {
            "fontStyle": ""
          }
        }
      ]
    },
    "editor.fontFamily": "Operator Mono, 'Fira Code iScript',Firicico, 'Droid Sans Mono', 'monospace', monospace, 'Droid Sans Fallback'",
    "editor.fontLigatures": true,
    "terminal.integrated.rendererType": "dom",
    "editor.fontWeight": "bold",
    "editor.fontSize": 15,
    "zentabs.maximumOpenedTabs": 4,
    "javascript.updateImportsOnFileMove.enabled": "always",
    "editor.minimap.enabled": false,
    "typescript.updateImportsOnFileMove.enabled": "always",
    "explorer.confirmDragAndDrop": false,
    "files.autoSave": "off",
    // Set the default
    "editor.formatOnSave": true,
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.