It is easy to not really have enough protein if you are a vegetarian.
You need 60g per day. Cravings for sugar and high carbohydrates can be caused by not having enough protein and fibre. As a vegetarian you might
have had, say, an egg for breakfast (6g of protein), a quorn filet with some vegetables for lunch (14g roughly) and something similar for dinner (14g). Yet even so, with such apparently good eating, you might have only had about 30g - only half the necessary amount. So you have to try really hard to get the right amount. One word of warning is that it might not be wise to eat too much textured vegetable protein such as soy mince, although it is high in protein, or too much cheese as it has a lot of fat (a little is good though). Tofu, quorn, pulses, cottage cheese, eggs, nuts, hemp or pumpkin protein powder put in a drink are good sources of protein. Vegetables also have some protein, though to lesser extent, as do brown bread, brown rice, brown pasta, oat bran and vegetables - which also have a high fibre content.
Avoid getting hungry as it might trigger cravings. Never skip meals. Do not watch television and eat; eat while walking etc because you might not notice yourself getting full. Never ever skip breakfast. People who eat breakfast eat less sugary/high carbohydrate food later on. Have a small healthy snack mid-morning such as an oat cake with some cottage cheese or eight almonds and an apple and something similar mid afternoon.
Get enough water to drink. Do not have too much caffeine. Watch out for the massive drinks and snacks at coffee bars which will cause cravings and stress.
No Italian or French person had these originally. Watch out too for drinking wine to try to relax at the end of the day when you are tired. It is just a sugar fix. Rather, have a real meal to eat, with a little glass (3oz) of wine to go with it if you want, and a rest.
Get enough sleep but do not over sleep. Sleeping too long and long afternoon sleeps can cause sugar cravings, Sleeping to little can lead to sugar cravings.
Stress can too.
The more sugar/white bread/pasta /cake etc you eat, the more a cycle is created whereby there is a peak in blood sugar followed by a fall as insulin rushes in to take the sugar away and store it. Trying to overcome hunger or tiredness with these foods as snacks tends to promote a vicious circle.
On the other hand, a little sweet food as a small part of a good meal should be all right as the rest of the meal gives the long lasting energy that prevents a crash in sugar levels which might cause a craving though something like strawberries and a little cream would be better than a big piece of pie.
However, if you get a strong sugar craving, even after having eaten the food your body is really craving, try a "better than" bit of sugar. For example, a tangerine and a glass of water or about six grapes. However, watch out for a lot of "good" sugar: orange juice, smoothies etc. A large glass of orange juice contains a large amount of sugar. Diet coke/pop, and sports drinks too, are often the drinks of cravers and overweight people. Look at labels for added sugar which is in many foods. Interestingly, high fructose corn syrup has been promoted by the food industry as an additive precisely at the same time that diabetes and obesity has become an epidemic.
If you have a real secret binge eating habit, possibly accompanied by purging through vomiting or massive bouts of exercise, and guilt and depression to go with this, you may have a psychological problem. This might mean you need help to find what emptiness/anger etc you are trying to quell with food. There are many books about it. A famous one is by Fairburn who stresses three meals a day and two snacks as well as keeping a food diary. One I have not read but which looks promising is "Brain Over Binge" whose author I cannot remember, but who, from what I can make out, thinks that although the habit of binging can take hold of one part of the brain, and the condition is caused by this rather than depression etc, the higher part of the brain can over come it. It makes sense as in, for instance, anger management where a person might be taught to count to ten to take the mind from the automatic, (as in flight or fight) response to a considered one. I overcame a nicotine habit (also linked to sugar levels interestingly) by self-help with Emotional Freedom Technique which may work similarly, by stalling an automatic response, and might well work also with binge eating impulses.
I apologise for the length of this and hope it helps.