środa, 4 kwietnia 2018

[Firefox] Popraw czytelność

Wyłączanie skrótu klawiszowego do przejścia do trybu poprawionej czytelności. Skrót klawiszowy CTRL+ALT+R.
  • about:config
  • reader.parse-on-load.enabled
  • false

środa, 27 lipca 2016

[Sublime] Pusta linia na końcu pliku

Aby zmusić edytor SublimeText aby upewnił się czy na końcu pliku znajduje się pusta linia, należy w pliku konfiguracyjnym dodać jeden klucz. Resztę pracy wykonuje sam edytor.
Plik konfiguracyjny: Preferences -> Settings - User
Klucz do dodania: "ensure_newline_at_eof_on_save": true,

Edytor zawsze przy zapisie pliku sprawdzi czy jest pusta linia, a jeżeli jej nie ma to ją doda.

piątek, 20 maja 2016

[Git] Change commit messages of past Git commits

To change a commit message of the most recent (unpushed) commit, you can simply use:
git commit –amend -m 'new message'
To change messages of (unpushed) commits further in the past:
git rebase -i [COMMIT BEFORE THE FIRST YOU WANT TO EDIT]
Mark all messages to be changed with "edit".
Git will start the rebasing and stop at every marked commit. For each of those, do a:
git commit –amend -m 'new message'
git rebase –continue

czwartek, 19 maja 2016

[Eclipse] C++11

Go to Project -> Properties -> C/C++ General -> Path and Symbols -> Tab [Symbols]. Add the symbol : __cplusplus with the value 201103L