Skip to content

Instantly share code, notes, and snippets.

@tuannguyen29
Last active February 25, 2021 02:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuannguyen29/0840c0fa6033eba263574b16744359e2 to your computer and use it in GitHub Desktop.
Save tuannguyen29/0840c0fa6033eba263574b16744359e2 to your computer and use it in GitHub Desktop.
  • emmet     + Emmet hỗ trợ viết code nhanh cho HTML và CSS dựa trên snippets (những đoạn mã dựng sẵn cho việc tái sử dụng nhiều lần).
  • All autocomplete
  • emmet css Nó là công cụ để cho dev sinh code nhanh hơn. Ví dụ: http://docs.emmet.io/cheat-sheet/
  • bootstrap 3 snippet
  • sublime linter     + sublime linter php         ++ phpintel         ++ phpsnippet         ++ AllAutocomplete         ++ https://mattstauffer.co/blog/sublime-text-3-for-php-developers     + sublime linter css     + sublime linter jshint
  • DocBlockr Plugin này để sử dụng khi bạn viết một hàm và muốn chú thích cho cái hàm đấy. Rất đơn giản, các bạn chỉ cần ấn "/*" rồi ấn phím tab
  • PHP Companion     --> "Preferences > Key Bindings - User"     --> Add: [ ... { "keys": ["f6"], "command": "expand_fqcn" }, { "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} }, { "keys": ["f5"], "command": "find_use" }, { "keys": ["f4"], "command": "import_namespace" }, { "keys": ["shift+f12"], "command": "goto_definition_scope" } ... ]
  • project manager
  • Alignment     Căn lề đều tự động cho code.     Cú pháp: Ctrl + Alt + A
  • SideBar Enhancements
  • colorhighlighter
  • aligntab
  • sublimecodeintel --> nhắc code
  • syntax highlight
  • jsformat : phím tắt Ctrl + Alt + F
  • javascript snippet
  • bracket highlighter
  • HTML-CSS-JS Prettify     Đôi khi code của chúng ta sẽ rất lộn xộn và khó có thể đọc được, và package này giúp cho code của chúng ta được fomat lại theo đúng chuẩn.     Hỗ trợ HTML, CSS, Javascript và JSON, để fomat gõ tổ hợp phím Ctrl + shift+ H http://nqdung.info/cong-cu/10-packages-sublime-text-can-thiet-cho-frontend-developers.html

GIT

  • GitGutter     + Giúp hỗ trợ bạn trong khi làm việc với git.     Nó sẽ cập nhật thông tin và trạng thái tại real-time (thời gian thực) của một tập tin.     Nhờ đó bạn nhanh chóng biết được tập tin nào đã được thêm, xoá, hoặc sửa.
  • https://packagecontrol.io/packages/Modific     hiển thị changed git, svn     


FORMAT CODE PHP PSR-2: https://packagecontrol.io/packages/phpfmt @link https://stackoverflow.com/questions/31021202/sublime-text-3-error-warning-php-5-6-or-newer-is-required-please-upgrade-you  Install: Menu > Preferences > Browse Packages { "psr2": true, "version": 2, "php_bin": "/usr/bin/php",     "format_on_save": true, } Using command palette, choose "phpfmt: indentation with spaces" http://sangplus.com/nhung-package-ho-tro-dinh-dang-code-trong-sublime-text.html


Bootstrap 3 Snippets @link https://packagecontrol.io/packages/Bootstrap%203%20Snippets Bootstrap 3 Autocomplete @link https://packagecontrol.io/packages/Bootstrap%203%20Autocomplete --------------------------------------------------------* Định dạng Javascript     @link https://github.com/ionutvmi/sublime-jsfmt     

Các font chữ cho lập trình viên:

https://int3ractive.com/2017/03/font-chu-cho-lap-trinh-vien.html Source Code Pro Space Mono --------------------------------------------------------*

Cài đặt font chữ Ubuntu:

sudo mkdir /usr/local/share/fonts/space_mono    

setting user:

{ "rulers": [80, 120], "wrap_width": 120,     "draw_white_space": "all",     "font_size": 10,     "rulers":     [         80,         120     ],     "tab_size": 4,     "telex": true,     "translate_tabs_to_spaces": true, "trim_trailing_white_space_on_save": true }

setting format code with shorcut key: (reference -> key binding)

{ "keys": ["f12"], "command": "reindent" , "args": { "single_line": false } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment