Skip to content

Instantly share code, notes, and snippets.

@luiseok
Created August 11, 2021 14:10
Show Gist options
  • Save luiseok/eb41757ba580f9412783352cb2003700 to your computer and use it in GitHub Desktop.
Save luiseok/eb41757ba580f9412783352cb2003700 to your computer and use it in GitHub Desktop.
IntelliJ Vue Single File Component File Template
#set( $regex = "([a-z])([A-Z]+)")
#set( $replacement = "$1-$2")
#set( $COMPONENT_NAME_KEBAB = $COMPONENT_NAME.replaceAll($regex, $replacement).toLowerCase())
<template>
<div class="${COMPONENT_NAME_KEBAB}">
#[[$END$]]#
</div>
</template>
<script>
export default {
name: "${COMPONENT_NAME}"
}
</script>
<style lang="scss" scoped>
.$COMPONENT_NAME_KEBAB {}
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment