Here is how you should configure you keyboard layouts in order to be a able to write code, English and Romanian text as easy as possible.

Remember that using these settings you can enter Romanian characters using ALT-GR even when current language is English. This is important because if you do not follow this you may have problems in Microsoft Office because the English spellchecker will not work because it will be confused by the current language settings. 

<img src="" alt="" />