diff --git a/snippets/dict_snippets.json b/snippets/dict_snippets.json index fcc9691..6114e76 100644 --- a/snippets/dict_snippets.json +++ b/snippets/dict_snippets.json @@ -1,6 +1,6 @@ { "clear -dict": { - "prefix": "clear -dict", + "prefix": ".clear -dict", "body": ".clear()", "description": "Removes all the elements from the dictionary" }, @@ -18,7 +18,7 @@ "description": "An example for using clear" }, "copy -dict": { - "prefix": "copy -dict", + "prefix": ".copy -dict", "body": ".copy()", "description": "Return a copy of the dictionary" }, @@ -36,7 +36,7 @@ "description": "An example for using copy" }, "fromkeys": { - "prefix": "fromkeys -dict", + "prefix": ".fromkeys -dict", "body": ".fromkeys(${1:key}, ${2:value})", "description": "Return a dictionary with the specified keys and values" }, @@ -60,7 +60,7 @@ "description": "An example for using fromkeys" }, "get": { - "prefix": "get -dict", + "prefix": ".get -dict", "body": ".get(${1:key})", "description": "Return the value of the specified key" }, @@ -91,7 +91,7 @@ "description": "An example for using get" }, "items": { - "prefix": "items -dict", + "prefix": ".items -dict", "body": ".items()", "description": "Return a list containing the a tuple for each key value pair" }, @@ -123,7 +123,7 @@ "description": "An example for using items" }, "keys": { - "prefix": "keys -dict", + "prefix": ".keys -dict", "body": ".keys()", "description": "Return a list containing the dictionary's keys" }, @@ -155,7 +155,7 @@ "description": "An example for using keys" }, "pop -dict": { - "prefix": "pop -dict", + "prefix": ".pop -dict", "body": ".pop(${1:key})", "description": "Removes the element with the specified key" }, @@ -173,7 +173,7 @@ "description": "An example for using pop" }, "popitem": { - "prefix": "popitem -dict", + "prefix": ".popitem -dict", "body": ".popitem()", "description": "Removes the last inserted key-value pai" }, @@ -191,7 +191,7 @@ "description": "An example for using popitem" }, "setdefault": { - "prefix": "setdefault -dict", + "prefix": ".setdefault -dict", "body": ".setdefault(${1:key}, ${2:value})", "description": "Return the value of the specified key. If the key does not exist: insert the key, with the specified value" }, @@ -222,7 +222,7 @@ "description": "An example for using setdefault" }, "update -dict": { - "prefix": "update -dict", + "prefix": ".update -dict", "body": ".update(${1:key}, ${2:value})", "description": "Updates the dictionary with the specified key-value pairs" }, @@ -240,7 +240,7 @@ "description": "An example for using update" }, "values": { - "prefix": "values -dict", + "prefix": ".values -dict", "body": ".values()", "description": "Return a list of all the values in the dictionary" }, diff --git a/snippets/list_snippets.json b/snippets/list_snippets.json index 62d1ca6..45e832f 100644 --- a/snippets/list_snippets.json +++ b/snippets/list_snippets.json @@ -1,6 +1,6 @@ { "append": { - "prefix": "append -list", + "prefix": ".append -list", "body": ".append(${1:item})", "description": "Adds an element at the end of the list" }, @@ -24,7 +24,7 @@ "description": "An example for using append" }, "clear -list": { - "prefix": "clear -list", + "prefix": ".clear -list", "body": ".clear()", "description": "Removes all the elements from the list" }, @@ -38,7 +38,7 @@ "description": "An example for using clear" }, "copy -list": { - "prefix": "copy -list", + "prefix": ".copy -list", "body": ".copy()", "description": "Return a copy of the list" }, @@ -52,7 +52,7 @@ "description": "An example for using copy" }, "count -list": { - "prefix": "count -list", + "prefix": ".count -list", "body": ".count()", "description": "Return the number of elements with the specified value" }, @@ -75,7 +75,7 @@ "description": "An example for using count" }, "extend": { - "prefix": "extend -list", + "prefix": ".extend -list", "body": ".extend(${1:iterable})", "description": "Add the elements of a list (or any iterable), to the end of the current list" }, @@ -90,7 +90,7 @@ "description": "An example for using extend" }, "index -list": { - "prefix": "index -list", + "prefix": ".index -list", "body": ".index(${1:element})", "description": "Return the index of the first element with the specified value" }, @@ -113,7 +113,7 @@ "description": "An example for using index" }, "insert": { - "prefix": "insert -list", + "prefix": ".insert -list", "body": ".insert(${1:element})", "description": "Adds an element at the specified position" }, @@ -127,7 +127,7 @@ "description": "An example for using insert" }, "pop -list": { - "prefix": "pop -list", + "prefix": ".pop -list", "body": ".pop()", "description": "Removes the element at the specified position" }, @@ -141,7 +141,7 @@ "description": "An example for using pop" }, "remove -list": { - "prefix": "remove -list", + "prefix": ".remove -list", "body": ".remove(${1:element})", "description": "Removes the first item with the specified value" }, @@ -155,7 +155,7 @@ "description": "An example for using remove" }, "reverse": { - "prefix": "reverse -list", + "prefix": ".reverse -list", "body": ".reverse()", "description": "Reverses the order of the list" }, @@ -169,7 +169,7 @@ "description": "An example for using reverse" }, "sort": { - "prefix": "sort -list", + "prefix": ".sort -list", "body": ".sort()", "description": "Sorts the list" }, diff --git a/snippets/sets_snippets.json b/snippets/sets_snippets.json index c070507..d4e3613 100644 --- a/snippets/sets_snippets.json +++ b/snippets/sets_snippets.json @@ -1,6 +1,6 @@ { "add": { - "prefix": "add -set", + "prefix": ".add -set", "body": ".add(${1:element})", "description": "Adds an element to the set" }, @@ -14,7 +14,7 @@ "description": "An example for using add" }, "clear -sets": { - "prefix": "clear -sets", + "prefix": ".clear -sets", "body": ".clear()", "description": "Removes all the elements from the set" }, @@ -28,7 +28,7 @@ "description": "An example for using clear" }, "copy -set": { - "prefix": "copy -set", + "prefix": ".copy -set", "body": ".copy()", "description": "Return a copy of the set" }, @@ -42,7 +42,7 @@ "description": "An example for using copy" }, "difference": { - "prefix": "difference -set", + "prefix": ".difference -set", "body": ".difference(${1:set})", "description": "Return a set containing the difference between two or more sets" }, @@ -67,7 +67,7 @@ "description": "An example for using difference" }, "difference_update": { - "prefix": "difference_update -set", + "prefix": ".difference_update -set", "body": ".difference_update(${1:set})", "description": "Removes the items in this set that are also included in another, specified set" }, @@ -82,7 +82,7 @@ "description": "An example for using difference_update" }, "discard": { - "prefix": "discard -set", + "prefix": ".discard -set", "body": ".discard(${1:item})", "description": "Remove the specified item" }, @@ -96,7 +96,7 @@ "description": "An example for using discard" }, "intersection": { - "prefix": "intersection -set", + "prefix": ".intersection -set", "body": ".intersection(${1:set})", "description": "Return a set, that is the intersection of two other sets" }, @@ -122,7 +122,7 @@ "description": "An example for using intersection" }, "intersection_update": { - "prefix": "intersection_update -set", + "prefix": ".intersection_update -set", "body": ".intersection_update(${1:set})", "description": "Removes the items in this set that are not present in other, specified set(s)" }, @@ -148,7 +148,7 @@ "description": "An example for using intersection_update" }, "isdisjoint": { - "prefix": "isdisjoint -set", + "prefix": ".isdisjoint -set", "body": ".isdisjoint(${1:set})", "description": "Return whether two sets have a intersection or not" }, @@ -173,7 +173,7 @@ "description": "An example for using isdisjoint" }, "issubset": { - "prefix": "issubset -set", + "prefix": ".issubset -set", "body": ".issubset(${1:set})", "description": "Return whether another set contains this set or not" }, @@ -198,7 +198,7 @@ "description": "An example for using issubset" }, "issuperset": { - "prefix": "issuperset -set", + "prefix": ".issuperset -set", "body": ".issuperset(${1:set})", "description": "Return whether this set contains another set or not" }, @@ -223,7 +223,7 @@ "description": "An example for using issuperset" }, "pop -set": { - "prefix": "pop -set", + "prefix": ".pop -set", "body": ".pop()", "description": "Removes the specified element" }, @@ -237,7 +237,7 @@ "description": "An example for using pop" }, "remove -set": { - "prefix": "remove -set", + "prefix": ".remove -set", "body": ".remove(${1:item})", "description": "Removes the specified element" }, @@ -251,7 +251,7 @@ "description": "An example for using remove" }, "symmetric_difference": { - "prefix": "symmetric_difference -set", + "prefix": ".symmetric_difference -set", "body": ".symmetric_difference(${1:set})", "description": "Return a set with the symmetric differences of two sets" }, @@ -266,7 +266,7 @@ "description": "An example for using symmetric_difference" }, "symmetric_difference_update": { - "prefix": "symmetric_difference_update -set", + "prefix": ".symmetric_difference_update -set", "body": ".symmetric_difference_update(${1:set})", "description": "inserts the symmetric differences from this set and another" }, @@ -281,7 +281,7 @@ "description": "An example for using symmetric_difference_update" }, "union": { - "prefix": "union -set", + "prefix": ".union -set", "body": ".union(${1:set})", "description": "Return a set containing the union of sets" }, @@ -307,7 +307,7 @@ "description": "An example for using union" }, "update -set": { - "prefix": "update -set", + "prefix": ".update -set", "body": ".update(${1:set})", "description": "Update the set with the union of this set and others" }, diff --git a/snippets/str_snippets.json b/snippets/str_snippets.json index 5b3c31a..dfa3c88 100644 --- a/snippets/str_snippets.json +++ b/snippets/str_snippets.json @@ -1,6 +1,6 @@ { "capitalize": { - "prefix": "capitalize -string", + "prefix": ".capitalize -string", "body": ".capitalize()", "description": "Converts the first character to upper case" }, @@ -23,7 +23,7 @@ "description": "An example for using capitalize" }, "casefold": { - "prefix": "casefold -string", + "prefix": ".casefold -string", "body": ".casefold()", "description": "Converts string into lower case" }, @@ -52,7 +52,7 @@ "description": "An example for using center" }, "str.count": { - "prefix": "count -string", + "prefix": ".count -string", "body": ".count(${1:string})", "description": "Return the number of times a specified value occurs in a string" }, @@ -75,7 +75,7 @@ "description": "An example for using count" }, "encode": { - "prefix": "encode -string", + "prefix": ".encode -string", "body": ".encode()", "description": "Return an encoded version of the string" }, @@ -98,7 +98,7 @@ "description": "An example for using encode" }, "endswith": { - "prefix": "endswith -string", + "prefix": ".endswith -string", "body": ".endswith(${1:string})", "description": "Return true if the string ends with the specified value" }, @@ -121,7 +121,7 @@ "description": "An example for using endswith" }, "expandtabs": { - "prefix": "expandtabs -string", + "prefix": ".expandtabs -string", "body": ".expandtabs(${1:number})", "description": "Sets the tab size of the string" }, @@ -147,7 +147,7 @@ "description": "An example for using expandtabs" }, "find": { - "prefix": "find -string", + "prefix": ".find -string", "body": ".find(${1:string})", "description": "Searches the string for a specified value and Return the position of where it was found" }, @@ -188,7 +188,7 @@ "description": "An example for using find" }, "format -string": { - "prefix": "format -string", + "prefix": ".format -string", "body": ".format($0)", "description": "Formats specified values in a string" }, @@ -207,7 +207,7 @@ "description": "An example for using format" }, "format_map": { - "prefix": "format_map -string", + "prefix": ".format_map -string", "body": ".format_map($0)", "description": "Formats specified values in a string" }, @@ -222,7 +222,7 @@ "description": "An example for using format_map" }, "index -string": { - "prefix": "index -string", + "prefix": ".index -string", "body": ".index(${1:string})", "description": "Searches the string for a specified value and Return the position of where it was found" }, @@ -263,7 +263,7 @@ "description": "An example for using index" }, "isalnum": { - "prefix": "isalnum -string", + "prefix": ".isalnum -string", "body": ".isalnum()", "description": "Return True if all characters in the string are alphanumeric" }, @@ -278,7 +278,7 @@ "description": "An example for using isalnum" }, "isalpha": { - "prefix": "isalpha -string", + "prefix": ".isalpha -string", "body": ".isalpha()", "description": "Return True if all characters in the string are in the alphabet" }, @@ -288,12 +288,12 @@ "description": "An example for using isalpha" }, "isascii": { - "prefix": "isascii -string", + "prefix": ".isascii -string", "body": ".isascii()", "description": "Return True if empty or all characters are ASCII - new in python 3.7" }, "isdecimal": { - "prefix": "isdecimal -string", + "prefix": ".isdecimal -string", "body": ".isdecimal()", "description": "Return True if all characters in the string are decimals" }, @@ -317,7 +317,7 @@ "description": "An example for using isdecimal" }, "isdigit": { - "prefix": "isdigit -string", + "prefix": ".isdigit -string", "body": ".isdigit()", "description": "Return True if all characters in the string are digits" }, @@ -337,7 +337,7 @@ "description": "An example for using isdigit" }, "isidentifier": { - "prefix": "isidentifier -string", + "prefix": ".isidentifier -string", "body": ".isidentifier()", "description": "Return True if the string is an identifier" }, @@ -361,7 +361,7 @@ "description": "An example for using isidentifier" }, "islower": { - "prefix": "islower -string", + "prefix": ".islower -string", "body": ".islower()", "description": "Return True if all characters in the string are lower case" }, @@ -383,7 +383,7 @@ "description": "An example for using islower" }, "isnumeric": { - "prefix": "isnumeric -string", + "prefix": ".isnumeric -string", "body": ".isnumeric()", "description": "Return True if all characters in the string are numeric" }, @@ -405,7 +405,7 @@ "description": "An example for using isnumeric" }, "isprintable": { - "prefix": "isprintable -string", + "prefix": ".isprintable -string", "body": ".isprintable()", "description": "Return True if all characters in the string are printable" }, @@ -428,7 +428,7 @@ "description": "An example for using isprintable" }, "isspace": { - "prefix": "isspace -string", + "prefix": ".isspace -string", "body": ".isspace()", "description": "Return True if all characters in the string are whitespaces" }, @@ -443,7 +443,7 @@ "description": "An example for using isspace" }, "istitle": { - "prefix": "istitle -string", + "prefix": ".istitle -string", "body": ".istitle()", "description": "Return True if the string follows the rules of a title" }, @@ -471,7 +471,7 @@ "description": "An example for using istitle" }, "isUpper": { - "prefix": "isUpper -string", + "prefix": ".isUpper -string", "body": ".isupper()", "description": "Return True if all characters in the string are upper case" }, @@ -493,7 +493,7 @@ "description": "An example for using isupper" }, "join": { - "prefix": "join -string", + "prefix": ".join -string", "body": ".join(${1:iterable})", "description": "Joins the elements of an iterable to the end of the string" }, @@ -517,7 +517,7 @@ "description": "An example for using join" }, "ljust": { - "prefix": "ljust -string", + "prefix": ".ljust -string", "body": ".ljust(${1:number})", "description": "Return a left justified version of the string" }, @@ -536,7 +536,7 @@ "description": "An example for using ljust" }, "lower": { - "prefix": "lower -string", + "prefix": ".lower -string", "body": ".lower()", "description": "Converts a string into lower case" }, @@ -546,7 +546,7 @@ "description": "An example for using lower" }, "lstrip": { - "prefix": "lstrip -string", + "prefix": ".lstrip -string", "body": ".lstrip(${1:leading_characters})", "description": "Return a left trim version of the string" }, @@ -569,7 +569,7 @@ "description": "An example for using lstrip" }, "maketrans": { - "prefix": "maketrans -string", + "prefix": ".maketrans -string", "body": ".maketrans($0)", "description": "Return a translation table to be used in translations" }, @@ -594,7 +594,7 @@ "description": "An example for using maketrans" }, "partition": { - "prefix": "partition -string", + "prefix": ".partition -string", "body": ".partition(${1:string})", "description": "Return a tuple where the string is parted into three parts" }, @@ -617,17 +617,17 @@ "description": "An example for using partition" }, "removeprefix": { - "prefix": "removeprefix -string", + "prefix": ".removeprefix -string", "body": ".removeprefix(${1:string})", "description": "Return remaining string when the front value is found\n\"hi is hi\",removeprefix(\"hi\") reult: is hi" }, "removesuffix": { - "prefix": "removesuffix -string", + "prefix": ".removesuffix -string", "body": ".removesuffix(${1:string})", "description": "Return remaining string when the end value is found\n\"hi is hi\",removesuffix(\"hi\") reult:hi is " }, "replace": { - "prefix": "replace -string", + "prefix": ".replace -string", "body": ".replace(${1:old}, ${2:new})", "description": "Return a string where a specified value is replaced with a specified value" }, @@ -659,7 +659,7 @@ "description": "An example for using replace" }, "rfind": { - "prefix": "rfind -string", + "prefix": ".rfind -string", "body": ".rfind(${1:string})", "description": "Searches the string for a specified value and Return the last position of where it was found" }, @@ -700,7 +700,7 @@ "description": "An example for using rfind" }, "rindex": { - "prefix": "rindex -string", + "prefix": ".rindex -string", "body": ".rindex(${1:string})", "description": "Searches the string for a specified value and Return the last position of where it was found" }, @@ -741,12 +741,12 @@ "description": "An example for using rindex" }, "rjust": { - "prefix": "rjust -string", + "prefix": ".rjust -string", "body": ".rjust(${1:number})", "description": "Return a right justified version of the string" }, "rpartition": { - "prefix": "rpartition -string", + "prefix": ".rpartition -string", "body": ".rpartition(${1:string})", "description": "Return a tuple where the string is parted into three parts" }, @@ -769,7 +769,7 @@ "description": "An example for using rpartition" }, "rsplit": { - "prefix": "rsplit -string", + "prefix": ".rsplit -string", "body": "rsplit(${1:separator}, ${2:maxsplit})", "description": "Return a right trim version of the string" }, @@ -793,7 +793,7 @@ "description": "An example for using rsplit" }, "rstrip": { - "prefix": "rstrip -string", + "prefix": ".rstrip -string", "body": "rstrip(${1:trailing_characters})", "description": "Return a right trim version of the string" }, @@ -849,7 +849,7 @@ "description": "An example for using split" }, "splitlines": { - "prefix": "splitlines -string", + "prefix": ".splitlines -string", "body": ".splitlines()", "description": "Splits the string at line breaks and Return a list" }, @@ -872,7 +872,7 @@ "description": "An example for using splitlines" }, "startswith": { - "prefix": "startswith -string", + "prefix": ".startswith -string", "body": ".startswith(${1:string})", "description": "Return true if the string starts with the specified value" }, @@ -900,7 +900,7 @@ "description": "Return a start and end trim version of the string" }, "swapcase": { - "prefix": "swapcase -string", + "prefix": ".swapcase -string", "body": ".swapcase()", "description": "Swaps cases, lower case becomes upper case and vice versa" }, @@ -914,7 +914,7 @@ "description": "An example for using swapcase" }, "title": { - "prefix": "title -string", + "prefix": ".title -string", "body": ".title()", "description": "Converts the first character of each word to upper case" }, @@ -942,7 +942,7 @@ "description": "An example for using title" }, "translate": { - "prefix": "translate -string", + "prefix": ".translate -string", "body": ".translate(${1:translation})", "description": "Return a translated string" }, @@ -959,7 +959,7 @@ "description": "An example for using translate" }, "upper": { - "prefix": "upper -string", + "prefix": ".upper -string", "body": ".upper()", "description": "Converts a string into upper case" }, @@ -969,7 +969,7 @@ "description": "An example for using upper" }, "zfill": { - "prefix": "zfill -string", + "prefix": ".zfill -string", "body": ".zfill(${1:number})", "description": "Fills the string with a specified number of 0 values at the beginning" }, @@ -979,3 +979,4 @@ "description": "An example for using zfill" } } +