unity3d - Make IDE start parenthesis in second line -
when create new unity script, contains stub:
// use initialization void start (){ }
i find myself rewriting
// use initialization void start () { }
because find easier read.
i tried find settings under tools->option have ide automatically default, didn't find any.
can achieved automatically somehow?
the problem not visual studio script template used unity when create new script.
modify script template , give left curly braces new line both start
, update
functions.
the file named "81-c# script-newbehaviourscript.cs.txt" , can find @ path below:
windows: c:\program files\unity\editor\data\resources\scripttemplates
mac: /applications/unity/editor/data/resources/scripttemplates
mac (since 5.2.1f1): /applications/unity/unity.app/contents/resources/scripttemplates
1.open "81-c# script-newbehaviourscript.cs.txt" file notepad. should this:
2.position mouse caret before start
function's left curly braces press enter once. after that, press space key 4 times. the-same thing update function save it.
that's it. don't have restart unity. changes should take effect when create new script.
note:
don't change or rename else in file.
Comments
Post a Comment