Instalando sublime text no ubuntu 14.04 lts

Esta é a primeira publicação onde vou ensinar passo a passo a instalar o sublime text 3 no ubuntu linux, a versão que uso é a 14.04 Lts , Então vamos lá :

Instalação via terminal :

Pressione as teclas CTRL + ALT + T para abrir o terminal , Copie uma linha de cada vez ,  cole ela no seu Terminal e de enter , caso peça sua senha informe-a .

sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update

sudo apt-get install sublime-text-installer

Para instalar via .deb basta fazer o download direto do link do sublime text abaixo :

[ clique para baixar ]

Configuração :

Após a instalação ser concluída vá até a aba Preferences > Settings User, como mostra a imagem abaixo :



Copie o código json e cole na aba aberta :

{
    // Note that the font_face and font_size are overriden in the platform
    // specific settings file, for example, "Preferences (Linux).sublime-settings".
    // Because of this, setting them here will have no effect: you must set them
    // in your User File Preferences.
    "font_face": "Source Code Pro",
    "font_size": 12,

    // List any packages to ignore here. When removing entries from this list,
    // a restart may be required if the package contains plugins.
    "ignored_packages": ["Vintage"],

    // The number of spaces a tab is considered equal to
    "tab_size": 4,

    // Set to true to insert spaces when tab is pressed
    "translate_tabs_to_spaces": true,

    // Set to true to removing trailing white space on save
    "trim_trailing_white_space_on_save": true,

    // Disables horizontal scrolling if enabled.
    // May be set to true, false, or "auto", where it will be disabled for
    // source code, and otherwise enabled.
    "word_wrap": false,

    // Show folders in the side bar in bold
    "bold_folder_labels": true,

    // Set to true to automatically save files when switching to a different file
    // or application
    "save_on_focus_lost": true,

    // If enabled, will highlight any line with a caret
    "highlight_line": true,

}

Packge Controll

Para instalar o packge controll basta pressionar CTRL + ` ou vá até a aba view > show console , copie o código abaixo e cole na caixinha , de um enter , aguarde o processo e pronto reinicie o sublime text :

import urllib.request,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)

Para instalar um pacote pressione as teclas CTRL + SHIFT + P , pronto com isso terminamos o turorial espero que tenha gostado, se sim, compartilhe essa publicação :)

Espero ter ajudo ! Compartilhe e fortaleça o blog :)
Previous
Next Post »