Skip to content

Instantly share code, notes, and snippets.

@tyler36
tyler36 / README.md
Created June 19, 2024 03:35 — forked from natemoo-re/README.md
Visual Studio Code Snippets – Common Case Transformations

Common Case Transformation Snippets

Visual Studio Code allows Snippets to perform ✨Variable Transforms✨ using Regex.

Here are some common case transformations that you can apply to your snippets. In these examples, I'm using $TM_FILENAME_BASE, but the same transformations should apply to any of the Snippet Variables.

snippets-from-delimited.json can convert filenames like my-file-name, my_file_name, my file name. If your filename is delimited by a dash, underscore, or space, these should work.

snippets-from-mixed-case.json can convert filenames like myFileName and MyFileName. If your filename is in camel or Pascal case, these should work.

<?php
/**
* #ddev-generated: Automatically generated WordPress settings file.
* ddev manages this file and may delete or overwrite the file unless this comment is removed.
* It is recommended that you leave this file alone.
*
* @package ddevapp
*/
/** Database charset to use in creating database tables. */
HISTFILE=/workspace/.gitpod/cmd-0 history -r; {
# Temporary fix for wrong value of GITPOD_REPO_ROOT when opening a Gitpod snapshot
# Todo: remove this when this issue is resolved - https://github.com/gitpod-io/gitpod/issues/9804
if [ "$GITPOD_REPO_ROOT" == '/workspace' ]; then
export GITPOD_REPO_ROOT="$THEIA_WORKSPACE_ROOT"
fi
.gitpod/utils/ddev-in-gitpod-setup.sh
.gitpod/utils/env-setup.sh
.gitpod/drupal/ssh/01-check-private-ssh.sh
.gitpod/drupal/drupalpod-setup.sh