Recent Changes - Search:

Oktatás

* Programozás 1
  + feladatsor
  + GitHub oldal

* Szkriptnyelvek
  + feladatsor
  + quick link

Teaching

* Programming 1 (BI)
  ◇ exercises
  ◇ quick link

* Scripting Languages
  ◇ exercises
  ◇ quick link

teaching assets


Félévek

* aktuális (2023/24/2)
* 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