First time here? Check out the FAQ!

Revision history  [back]

do not understand how to create snippets with variables

I do not understand how to enter code for snippets with variable names. I create a new snippet and I get aan empty window in the editor. From there I would like to enter the code for a new test: def test_file_variable(self): string =

res = dstring_parse(string)
display_PathPoints(res, variable)

shouldbe = [

]
self.assertEqual(res, shouldbe)

I need a variable name instead of variable How can I do this?

do not understand how to create snippets with variables

I do not understand how to enter code for snippets with variable names. I create a new snippet and I get aan empty window in the editor. From there I would like to enter the code for a new test: def test_file_variable(self): string =

res = dstring_parse(string)
display_PathPoints(res, variable)

shouldbe = [

]
self.assertEqual(res, shouldbe)

I need a variable name instead of variable How can I do this?