<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:cef="http://xbrl.sec.gov/cef/2025"
  xmlns:cshycf="http://www.creditsuisse.com/20260702"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:us-gaap="http://fasb.org/us-gaap/2025"
  xmlns:xbrldi="http://xbrl.org/2006/xbrldi"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef xlink:href="cik0001061353-20260702.xsd" xlink:type="simple"/>
    <context id="Q42026">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061353</identifier>
        </entity>
        <period>
            <startDate>2025-11-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="Q42026_BeneficialInterestMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061353</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">cshycf:BeneficialInterestMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-11-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="Q42026_CommonSharesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061353</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">cshycf:CommonSharesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <startDate>2025-11-01</startDate>
            <endDate>2026-04-30</endDate>
        </period>
    </context>
    <context id="TI20260430">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061353</identifier>
        </entity>
        <period>
            <instant>2026-04-30</instant>
        </period>
    </context>
    <context id="TI20260430_CommonSharesMember">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0001061353</identifier>
            <segment>
                <xbrldi:explicitMember dimension="us-gaap:StatementClassOfStockAxis">cshycf:CommonSharesMember</xbrldi:explicitMember>
            </segment>
        </entity>
        <period>
            <instant>2026-04-30</instant>
        </period>
    </context>
    <unit id="USD_shares">
        <divide>
            <unitNumerator>
                <measure>iso4217:USD</measure>
            </unitNumerator>
            <unitDenominator>
                <measure>shares</measure>
            </unitDenominator>
        </divide>
    </unit>
    <unit id="shares">
        <measure>shares</measure>
    </unit>
    <dei:EntityCentralIndexKey
      contextRef="Q42026"
      id="h1_56f71318_1109_4819_bb67_0dcf0cd8164a">0001061353</dei:EntityCentralIndexKey>
    <dei:AmendmentFlag
      contextRef="Q42026"
      id="h3_1ea5a432_e9d4_4da5_a0d4_bbe37d6ec757">false</dei:AmendmentFlag>
    <dei:DocumentType
      contextRef="Q42026"
      id="t_2_cb29dc86_9d9a_426c_5dd8_2274995ac38f">N-CSRS</dei:DocumentType>
    <dei:EntityRegistrantName
      contextRef="Q42026"
      id="t_1_6033e3cf_5b9a_441f_873c_c1043f02077a">CREDIT SUISSE HIGH YIELD CREDIT FUND </dei:EntityRegistrantName>
    <cef:OutstandingSecurityNotHeldShares
      contextRef="Q42026_CommonSharesMember"
      decimals="INF"
      id="h_1_38d530f1_42d7_b7b8_c75d_44aa77e9ab85"
      unitRef="shares">103609624</cef:OutstandingSecurityNotHeldShares>
    <cef:OutstandingSecurityTitleTextBlock
      contextRef="Q42026_CommonSharesMember"
      id="t_1_4702166c_f0be_1457_92a2_e4196c91e45b">shares outstanding</cef:OutstandingSecurityTitleTextBlock>
    <us-gaap:NetAssetValuePerShare
      contextRef="TI20260430"
      decimals="INF"
      id="h_2_76a0a926_62b9_5194_dcaf_5d4d524a1d4a"
      unitRef="USD_shares">2.04</us-gaap:NetAssetValuePerShare>
    <us-gaap:SharePrice
      contextRef="TI20260430_CommonSharesMember"
      decimals="INF"
      id="h_3_dd4bf4b0_e94f_f39f_d046_2e163737a1c7"
      unitRef="USD_shares">1.76</us-gaap:SharePrice>
    <cef:InvestmentObjectivesAndPracticesTextBlock
      contextRef="Q42026"
      id="t_1_6011670f_ae92_2cef_97e9_342a3ac743aa">The Fund&#x2019;s principal investment objective is to seek high current income. The Fund also will seek capital appreciation as a secondary objective, to the extent consistent with its objective of seeking high current income.</cef:InvestmentObjectivesAndPracticesTextBlock>
    <cef:OtherSecurityDescriptionTextBlock
      contextRef="Q42026"
      id="t_1_c5d2b561_eca1_7e7e_44a7_49eda0d9483b">the Fund had outstanding loans of securities to certain approved brokers for which the Fund received collateral:</cef:OtherSecurityDescriptionTextBlock>
    <cef:OutstandingSecurityTitleTextBlock
      contextRef="Q42026_BeneficialInterestMember"
      id="t_1_57931ab2_b159_50a1_db51_da6eb51fcfbc">The Fund has one class of shares of beneficial interest shares, par value $0.001 per share; an unlimited number of shares are authorized.</cef:OutstandingSecurityTitleTextBlock>
</xbrl>
