Skip to content

Instantly share code, notes, and snippets.

View cmendez20's full-sized avatar

Chris Mendez cmendez20

View GitHub Profile
@cmendez20
cmendez20 / setup-git.txt
Created January 11, 2024 21:29
git commit messages
1. create .gitmessage in template in home directory
2. git config --global commit.template ~/.gitmessage
3. set vscode as core editor: git config --global core.editor "code --wait"
# Title: Summary, imperative, start upper case, don't end with a period
# No more than 50 chars. #### 50 chars is here:
# Remember blank line between title and body.
/*
1. Use a more-intuitive box-sizing model.
*/
*, *::before, *::after {
box-sizing: border-box;
}
/*
2. Remove default margin
@cmendez20
cmendez20 / settings.json
Created March 24, 2022 03:16
My VS Code Settings
{
"terminal.integrated.fontSize": 14,
"terminal.integrated.letterSpacing": 0.5,
"editor.letterSpacing": 0.5,
"editor.renderWhitespace": "trailing",
"editor.tabSize": 2,
"editor.fontLigatures": true,
"[md]": {
"editor.insertSpaces": true,
"editor.tabSize": 2
@cmendez20
cmendez20 / My User Snippets
Last active September 29, 2023 04:30
A collection of some JS/React snippets I use in VS Code
{
// Place your global snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
// is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
// used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
// Placeholders with the same ids are connected.
// Example:
// "Print to console": {
// "scope": "javascript,typescript",
// vscode-keybindings for navigation with I/J/K/L and additional functionality with surrounding characters
// Place your key bindings in this file to overwrite the defaults
// ALT + I/J/K/L: up/left/down/right
// ALT + SHIFT + I/J/K/L: mark text up/left/down/right
// CTRL + J/L: send cursor to start/end of line
// CTRL + ALT + J/L: send cursor to start/end of word
// CTRL + ALT + U/O: send cursor to "wordPartLeft"/"wordPartRight"
// CTRL + ALT + SHIFT + U/O: mark from cursor to "wordPartLeft"/"wordPartRight"
// CTRL + ALT + Y: got to declaration
@cmendez20
cmendez20 / Windows Terminal Settings
Last active July 5, 2022 05:11
My Custom Windows Terminal Settings
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions": [
{
"command": {
"action": "copy",
"singleLine": false
},
"keys": "ctrl+c"