Month: September 2016

Build Sass in Sublime text 3

  • Install Ruby (nho chọn tuy chon add to PATH variable)
  • restart computer
  • go lenh: gem install sass de cài sass
  • Neu compile bang ruby thi run: sass –watch style.scss:style.css (nho cd vao path sass folder)
  • Cai Libsassbuild
  • Tools-> Libsassbuild -> edit project config:
    •    Pass text:{
      “output”: {
      “dir”: “../../assets/css/”,
      “structure”: “flat”
      },
      “compile”: {
      “line-comments”: false,
      “line-numbers”: true,
      “style”: “nested”
      }
      }
    • Save as lai nhu hinh:
    • untitled
  • Muon build tu dong khi save thi can them plugin: SublimeOnSaveBuild

 

Mac dinh khi sua file partial(file duoc imported) => Build => se sinh ra file partial css tuong ung. Muon ngan chan cai nay thi

Sublime Text 3 Keyboard Shortcuts

General

Command Pallete
CTRL + SHIFT + P
Show­/Hide Console
CTRL + `
Show­/Hide Sidebar
CTRL + K, B
Redo Last Keyboard Shortcut
CTRL + Y
Select Autoco­mplete Sugges­tion
CTRL + SPACE

Window Manipu­lation

Full­scr­een
F11
Dist­raction Free Mode
Shift + F11
New Window
CTRL + SHIFT + N
New Tab
CTRL + N
Select A Tab
ALT + TAB NUMBER
Close Tab
CTRL + W
Move Tab to Pane
CTRL + SHIFT + PANE NUMBER
Switch to Pane
CTRL + PANE NUMBER

Layout

2, 3, 4 Column
ALT + SHIFT + 1/4
2 or 3 Row
ALT + SHIFT + 8/9
4 Grid
ALT + SHIFT + 5
Split Pane in Half
CTRL + K, CTRL + SHIFT + UP

Pane Manipu­lation

Move to Panel
CTRL + PANEL NUMBER
Move File to Panel
CTRL + SHIFT + Panel Number

Navigation

Quick Open File
CTRL + P
Open File, Search Symbol
CTRL + P, @
Go to Symbol
CTRL + R
Go to Line
CTRL + G
Go to Next Tab
CTRL + PGDOWN
Go to Previous Tab
CTRL + PGUP
Jump to Closing Parent­hesis
CTRL + M

Find & Replacing

Find
CTRL + F
Find Next
F3
Find Previous
SHIFT + F3
Replace Every Select­ion
After selecting, ALT + F3
Repl­ace
CTRL + H
Incr­emental Search
CTRL + I
Find in Files
CTRL + SHIFT + F
Find then Multi-­Edit
CTRL + F, ALT + Enter
Use Selection for Find Field
CTRL + E
Use Selection for Replace Field
CTRL + SHIFT + E

Selecting Text

Line
CTRL + L
Word
CTRL + D
Quick Select Next Iterat­ion
CTRL + D
UnSelect Next Iterat­ion
CTRL + U
Skip, and Select the Next Iterat­ion
CTRL + K, D
Pare­nthesis Content
CTRL + SHIFT + M
Inde­ntation Content
CTRL + SHIFT + J
Column Selection Up
CTRL + ALT + UP
Column Selection Down
CTRL + ALT + DOWN
Mult­i-S­elect Editing
CTRL + CLICK

Editing

Delete Line
CTRL + SHIFT + K
Delete From Cursor to EOL
CTRL + K, K
Delete From Cursor to BOL
CTRL + K, BKSP
Delete Word Forwards
CTRL + DEL
Delete Word Backwa­rds
CTRL + BKSP
Move Line Up
CTRL + SHIFT UP
Move Line Down
CTRL + SHIFT + DOWN
Insert Line Before
CTRL + SHIFT + ENTER
Insert Line After
CTRL + ENTER
Indent Current Line
CTRL + ]
UnIndent Current Line
CTRL + [
Dupl­icate Line
CTRL + SHIFT + D
Join Line Below Current Line
CTRL + J
Paste With Proper Indent­ation
CTRL + SHIFT + V
Tran­spose
SELECT ITEMS, CTRL + T

Transform

To Upperc­ase
CTRL + K, U
To Lowerc­ase
CTRL + K, L
Increase Font Size
CTRL + PLUS
Decrease Font Size
CTRL + MINUS

Bookmarks

New Bookmark
CTRL + F2
Next Bookmark
F2
Previous Bookmark
SHIFT + F2
Clear Bookma­rks
CTRL + SHIFT + F2

Code Folding

Fold Select­ion
CTRL + SHIFT + [
UnFold Select­ion
CTRL + SHIFT + ]
Fold All
CTRL + K, 1
UnFold All
CTRL + K, J
Fold Level
CTRL + 2/9

Commenting

Comment Line
CTRL + /
Block Comment
CTRL + SHIFT + /

Removing the index.php file Codeigniter

http://www.codeigniter.com/user_guide/general/urls.html

Neu van khong dc, vào http.conf sua:

<Directory d:/Workspace/mycodeigniter.com>
AllowOverride All
Require all granted

</Directory>
<VirtualHost *:80>
ServerAdmin webmaster@mycodeigniter.com
DocumentRoot “d:/Workspace/mycodeigniter.com”
ServerName mycodeigniter.com
ServerAlias http://www.mycodeigniter.com
DirectoryIndex index.php index.html
ErrorLog “logs/mycodeigniter.com-error.log”
CustomLog “logs/mycodeigniter.com-access.log” common
</VirtualHost>

Xdebug and Sublime Text | Vaerenbergh

This blog post is about making Xdebug work together with Sublime Text (in this example version 2). By many considered a tough task. But it’s doable. Your IDE will look something like this: A couple of assumptions made before continuing: Sublime Text 2 or higher is installed.

Source: Xdebug and Sublime Text | Vaerenbergh

 

custom shortcut key:

Reference->Keybinding user:

[
{“keys”: [“ctrl+f8”], “command”: “xdebug_breakpoint”},
{“keys”: [“shift+f8”], “command”: “xdebug_conditional_breakpoint”},
{“keys”: [“ctrl+shift+f5”], “command”: “xdebug_continue”, “args”: {“command”: “run”}},
{“keys”: [“f6”], “command”: “xdebug_continue”, “args”: {“command”: “step_over”}},
{“keys”: [“f7”], “command”: “xdebug_continue”, “args”: {“command”: “step_into”}},
{“keys”: [“f5”], “command”: “xdebug_continue”, “args”: {“command”: “step_out”}},
{“keys”: [“ctrl+shift+f9”], “command”: “xdebug_session_start”},
{“keys”: [“ctrl+shift+f10”], “command”: “xdebug_session_stop”},
{“keys”: [“ctrl+shift+f11”], “command”: “xdebug_layout”, “args”: {“keymap” : true}}
]