Skip to content

Instantly share code, notes, and snippets.

@lnoering
Last active March 30, 2017 16:50
Show Gist options
  • Save lnoering/6cc745ee6351f2e71da1 to your computer and use it in GitHub Desktop.
Save lnoering/6cc745ee6351f2e71da1 to your computer and use it in GitHub Desktop.
[Sublime] Plugins

Usando comando para executar o Sublime

./sublime_text --help Sublime Text 2 Build 2217

Usage: sublime_text [arguments] [files] edit the given files or: sublime_text [arguments] [directories] open the given directories

Arguments: --project : Load the given project --command : Run the given command -n or --new-window: Open a new window -a or --add: Add folders to the current window -w or --wait: Wait for the files to be closed before returning -b or --background: Don't activate the application -h or --help: Show help (this message) and exit -v or --version: Show version and exit

Usando o cntrl+b para executar PHP

Tools > Build System > New Build System...

In Linux

{
	"cmd": ["php", "$file"],
	"file_regex": "php$",
	"selector": "source.php"
}

Windows com xampp

  { 
     "cmd": ["C:\\xampp\\php\\php.exe", "$file"],
     "file_regex": "*",
     "selector": "source.php"
  }

Save as : PHP.sublime-build

Como instalar tema Numix

1  Preferences -> Package Control -> Package Control: Install Package 
    Numix Light
    
2  Preferences -> Settings - User
    # /root/.config/sublime-text-3/Packages/User/Preferences.sublime-settings #
    {
    	"theme": "Numix Light.sublime-theme",
    	"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
    	"font_size": 10,
    	"ignored_packages":
    	[
    		"Vintage"
    	]
    }

3  Preferences -> Color Scheme -> Mac Classic

Alinhar strings

https://packagecontrol.io/packages/AlignTab

Ver a cor do Hexa/modificar

https://github.com/weslly/ColorPicker
    -> Ctrl+shift+c

Acompanhar se existe alterações na branch em que estou

- Status-Bar da branch em que estou.
    https://packagecontrol.io/packages/Git-StatusBar
    ->símbolo	
        *	    o ramo atual está diferente / the current branch is dirty
        +n	    A branch está a frente da remota / the current branch is n commits ahead the remote branch
        -n	    A branch está atrás da branch remota / the current branch is n commits behind the remote branch
        
- Diferença do arquivo com o GIT.
    https://packagecontrol.io/packages/GitGutter-Edge
    -> Ctrl-Shift-P

Indentar Fonte (php)

https://packagecontrol.io/packages/phpfmt
    -> Ao salvar o arquivo já deixa identado.

TESTAR

http://inchoo.net/dev-talk/programming-magento-without-ide-say-hello-sublime/
http://jahvi.com/top-5-sublime-text-packages-for-magento-development/

https://blog.tetranet.com.br/instalacao-configuracao-sublime-text-desenvolvimento-web/
https://mattstauffer.co/blog/sublime-text-3-for-php-developers
https://packagecontrol.io/packages/MagentoSnippets
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment