For example:
export const setVisibilityFilter = (filter) => ({
type: 'SET_VISIBILITY_FILTER',
filter
})
The name of the function setVisibilityFilter
has camelCase. The same in the written version in uppercase characters separated by underscores: SET_VISIBILITY_FILTER
I want to make a snippet out of it. I want that after entering any text in the snippet variable, in the second place the uppercase characters separated by underscores were created from this text.
So that I do not have to write it for the second time, only in large letters ...
Is it possible in a snippet and how to do it?