Lets create repository to experiment with: Graphically git repository will look like this: We are currently on master branch. Let's say we remove (by mistake) feature/Democratic branch with force (cause branch is not merged into master). [crayon-599990259c641186469521/] To revert that…
Let's say you are one man-army, single developer who develops next-great-thing-on-desktop. You have only one client for whom you send each day latest build to test. After sometime you started getting bug reports, and you want to easily tell which…
If you use Visual Studio Code there is very high probability, that you use also Git as your main version control system.
You can set Visual Studio Code as default editor and Diff tool which will be showing changes between two different commits.
To set Visual Studio Code as your default editor enter this command into command line:
git config --global core.editor "code --wait"
A default editor for Git in Windows system is notepad, which we can all agree that editor is not the greatest editor in the world.
We can change it to Notepad++. Let’s assume that Notepad++ was installed in default path
C:\Program Files (x86)\Notepad++\. Then the command to set Notepad++ as default git will look like this:
git config --global core.editor "'C:/Program Files (x86)/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"
I was writing lately about problem with a lack of precision in date. I said about having many tables with column with time stamp of last update. You can figure it about that changing it by hand is very painful.
You can automatize that by using
Listener. Listener – ekm – listen for changes that are sent to database. You can define
Listner like that
Software which I was updating into XXI century had database in which every record contains time stamp about insert or latest update. In NHibernate - DateTime is saved with precision of seconds. "Old" software was saving with precision of milliseconds,…
Lately I have started working with WPF. I observed that Design View, which enables developer to see how aplication will present it self, often hangs or stops refreshing when we makes some changes in our project. The bigger code base then there is higher chance for Design View to stops responding.
You can use popular Windows solution for any kind of problem “turn it off and on again”, but closing and opening again Visual Studio takes very long time.
Solution: Rendering view is made by seperate process, which you can kill, and then in Visual Studio you turn it on again.
You can kill this processes by using Task Manager and find any Microsoft Visual Studio XAML UI Designer, but you can do it faster by using command line and you do not need to leave Visual Studio environment.
If you need cheat-sheet with most used keyboard shortcuts in Visual Studio Code here it is!
Orignal (hosted by Microsoft).