My Sublime conf

Preferences -> Setting-user


// Settings in here override those in "Default/Preferences.sublime-settings",
// and are overridden in turn by file type specific settings.
// to enable selection php variables using two clicks
 {
 "font_face": "Courier New",
 "font_size": 12,
 "word_wrap": "false",
 "word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
 }

Key Binding -> User


[
 //Cambio de pestañas
 { "keys": ["ctrl+tab"], "command": "next_view" },
 { "keys": ["ctrl+shift+tab"], "command": "prev_view" },

//Eliminar linea
 { "keys": ["ctrl+shift+d"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },

 //Comentar bloques
 { "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
 { "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
 
 //Disparar comando buid
 { "keys": ["f5"], "command": "build" },
]

Psql sublime build

{
    "env": { "PGPASSWORD":"xxxxx" },
    "cmd": ["psql", "-h", "myserver", "-U", "myuser", "-d", "mydbb", "-p", "5432", "-f", "$file", "-o", "results.sql"],
}

El ejecutable debe estar en la path del sistema, en Windows

Posted in Uncategorized