Skip to content

Single Liners

Lewis Page edited this page Mar 12, 2021 · 3 revisions

Writing C# without making a new file

Currently, TLCS doesn't support making multi-line applications in the terminal, however, it is planned to become a feature.

However, If you would like to write a single liner, type tlcs -s "" into the terminal, with your single liner inside the quotation marks. Please note that using this method you are unable to write strings into your C# one-liner. To overcome this, please use the TLCS Terminal.

Here's an example:

tlcs -s "for(int i = 0; i < 100; i++){ if(!i % 5){continue;} System.Console.WriteLine(i); }"

Clone this wiki locally