Recent Changes - Search:

Oktatás

* Programozás 2
  + feladatsor
  + C feladatsor
  + Python feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

* levelezősök
  + Adator. prog.
  + feladatsor
  + quick link

teaching assets


Félévek

* 2024/25/1
* archívum


Linkek

* kalendárium
   - munkaszüneti napok '20
* tételsorok
* jegyzetek
* szakdolgozat / PhD
* ösztöndíjak
* certificates
* C lang.
* C++
* C#
* Clojure
* D lang.
* Java
* Nim
* Scala


[ edit | logout ]
[ sandbox | passwd ]

Tip /

20180404h

Live templates

For instance, how to write a "foreach" loop efficiently:

foreach<Tab>nameOfYourCollection<Tab><Tab>nameofVariable<Enter>

Thanks to Kim^J on IRC :)


Let's say you want to write "wl<Tab>" and you want Rider to expand it to "WriteLine(I);", where I indicates the position of the cursor. How to do it?

  • go to Settings | Live Templates
  • Create a C# template group. Click on the green "+" button and select Template Group… Call the group "C#".
  • Under the C# group create a new entry. Click on the "+" again and select Live Template.
    • Abbreviation: wl
    • Description: WriteLine();
    • Template text: WriteLine($END$);
    • At the bottom you have a warning: No applicable contexts. Click Define, select Other.
  • Save

Now you can type "wl<Tab>" and it'll be expanded.

Screenshot

Cloud City

  

Blogjaim, hobbi projektjeim

* The Ubuntu Incident
* Python Adventures
* @GitHub
* heroku
* extra
* haladó Python
* YouTube listák


Debrecen | la France


[ edit ]

Edit - History - Print *** Report - Recent Changes - Search
Page last modified on 2018 April 05, 23:04