When setting the configs in code space you need to comment out the configs lines in the chip's *.inc file.
http://www.picbasic.co.uk/forum/showthread.php?t=543