Better Thinkscript editing


Category:
0
0

Everytime I want to work on a study, opening the code editor is a hassle.

Is there a better way to edit thinkscript than clicking Studies -> Edit Studies -> Right click Study name -> Edit?

Thanks.

Marked as spam
Posted by (Questions: 4, Answers: 2)
Asked on May 15, 2020 7:55 pm
546 views
1
Private answer

Hi

There indeed is a better way to do editing. I am an experienced professional web developer/programmer and for years have used VSCODE. Over the last few weeks I became interested in using thinkscript thanks to your excellent videos. Once I decided that I would learn thinkscript my first thought was is there an extension for thinkscript in VSCODE. VSCODE is a robust editing development tool used for Javascript, pearl, C#,VB, Terminal emulation and even Cobol. It's advantages include syntax checking, debug and terminal consoles and so many other wonderful tools. The extension come from github and VSCODE is a free complex editor with tons of manuals, youtube videos and books to learn from. I am just starting to play with the extension. Usually these extensions have syntax checking but I am not sure if this extension does. Learning VSCODE is fairly easy if you are at all comfortable with coding or EXCEL or VB scripts.  I will let you know how it goes with VSCODE and thinkscript. https://www.screencast.com/t/UWQubKH1iuXQ

Marked as spam
Posted by (Questions: 1, Answers: 1)
Answered on January 9, 2021 8:11 am
0
Thanks for posting this! I have been using Atom for several years and have found it very handy in my development work. A good friend of mine mentioned Visual Studio Code some months ago. I didn't bother to check into it because I just assumed they would not have an extension for Thinkscript (neither does Atom but without that added feature it was not worth my time to learn to use a new IDE). In fact when using Atom I simply set the code editor to apply TypeScript syntax highlighting and it works extremely well, not perfect. I just downloaded the Mac version of Visual Studio Code, loaded the thinkScript extension and grabbed one of my custom chart studies. Works great!
( at January 9, 2021 10:00 am)
0
Private answer

Nope, not really. I can only save you one mouse click. Which is Studies --> Edit Studies --> click the script icon.

Marked as spam
Posted by (Questions: 37, Answers: 4084)
Answered on May 15, 2020 8:24 pm
0
Private answer

Hi guys, I just found a solution :) One guy has already developed the extension for thinkscript in VS Code. So, you can install VS Code and use it:

VS Code -> Extensions (left menu) -> search for thinkscript -> install. Change your file extension to tosts and use it :)

Marked as spam
Posted by (Questions: 0, Answers: 1)
Answered on September 5, 2021 2:33 am
0
Yep. I have been using this ever since the solution was provided by joseph blackwell on Jan 9, 2021. Thanks for providing a bit more detail about how to add the extension to VS Code.
( at September 5, 2021 8:19 am)