Find all directories under ~/code excluding hidden directories and their subdirectories and replace all newlines with : in the output then remove the last :
find ~/code -type d | sed '/\/\\./d' | tr '\n' ':' | sed 's/:$//'