在Deepin下安装的CB,输入printf、scanf的时候不会自动补全,这样就很难受。
解决办法是在Setting -> Editor -> Syntax highlighting -> Key Words ,找一个空的集合,比如集合4,把下面的内容复制进去
STANDARD_LIBRARY_NAMES abort ios_base accumulate isalpha allocator islower auto_ptr ispunct back_inserter isspace bad_alloc istream bad_cast istream_iterator bind2nd istringstream bitset isupper boolalpha left cerr less_equal cin list copy logic_error count lower_bound count_if make_pair cout map dec max deque min endl multimap ends multiset equal_range negate exception noboolalpha fill noshowbase fill_n noshowpoint find noskipws find_end not1 find_first_of nounitbuf fixed nouppercase flush nth_element for_each oct front_inserter of stream fstream ostream getline ostream_iterator hex ostringstream ifstream out_of_range inner_product pair inserter partial_sort internal plus priority_queue sqrt ptrdiff_t stable_sort queue stack range_error strcmp replace strcpy replace_copy string reverse_iterator stringstream right strlen runtime_error strncpy scientific terminate set tolower set_difference toupper set_intersection type_info set_union unexpected setfill uninitialized_copy setprecision unitbuf setw unique showbase unique_copy showpoint upper_bound size_t uppercase skipws vector sort STRING_EXPORTS append assign at begin c_str capacity clear compare copy data empty end erase find find_first_not_of find_first_of find_last_not_of find_last_of getline insert length max_size push_back rbegin rend replace reserve resize rfind size substr swap CPP_ITERATOR size_type iterator const_iterator input_iterator output_iterator forward_iterator bidirectional_iterator random_iterator reverse_iterator CPP_USER T N Any fout fin algorithm ofstream regex regex_match cmatch smatch regex_search regex_replace STANDARD_C_I_O clearerr fclose feof ferror fflush fgetc fgetpos fgets fopen fprintf fputc fputs fread freopen fscanf fseek fsetpos ftell fwrite getc getchar gets perror printf putc putchar puts remove rename rewind scanf setbuf setvbuf sprintf sscanf tmpfile tmpnam ungetc vprintf vfprintf vsprintf STANDARD_C_STRING_AND_CHARACTER atof atoi atol isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit memchr memcmp memcpy memmove memset strcat strchr strcmp strcoll strcpy strcspn strerror strlen strncat strncmp strncpy strpbrk strrchr strspn strstr strtod strtok strtol strtoul strxfrm tolower toupper
保存就好了
但是有个问题是一重启就没了= =