Two questions about writing code in the QuantConnect editor:
1. When I get an indentation error, I see all of the indentations shown in-line with the code (with grayed-out small dots ...). After I fix the error, the indentations are still shown unless I refresh the page. Is there a key shortcut to hide the indentation markers anytime I want? Not a big deal...just kind of annoying.
2. As someone who is used to developing Pyton code in Visual Studio Code, block indents/un-indents using Cmd+] and Cmd+[ are something I rely on all the time. Is there are key shortcut in the QuantConnect editor to indent/un-indent a multi-line block of code all at once? Example use case: I decide to remove a loop and want to un-indent the 50 lines of code that used to be inside the loop block...without having to delete the indents line-by-line.
Thanks for any help you can offer!
Laurent Crouzet
1. As you, I did not find a solution without refreshing the page, or waiting several minutes to let the editor eventually hide the indentation markers. You are correct: it is somewhat annoying... but not that much.
2. You can just select the 50 lines, and just press Tab to add an indent (press twice to add 2 indents...), and Maj+Tab to remove an indent.
Derek Melchin
Hi Eric,
Sorry about the indentation markers. I've reported the issue to our UX team.
We can indent multiple lines at once in the IDE by starting a multicursor. On Mac, the shortcut is Ctrl-Option-Up/Down/Right/Left and depends on the direction the user would like to select. For a full list of the keyboard shortcuts our IDE supports, refer to this GitHub wiki.
Best,
Derek Melchin
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
Eric Nielsen
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!